Unix Technical Forum

BUG #3606: Query Plan Failure or Index Corruption?

This is a discussion on BUG #3606: Query Plan Failure or Index Corruption? within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3606 Logged by: David Tulloss Email address: dtulloss@computersoftwareinc.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 11:06 AM
David Tulloss
 
Posts: n/a
Default BUG #3606: Query Plan Failure or Index Corruption?


The following bug has been logged online:

Bug reference: 3606
Logged by: David Tulloss
Email address: dtulloss@computersoftwareinc.com
PostgreSQL version: 8.2
Operating system: Windows
Description: Query Plan Failure or Index Corruption?
Details:

I have a very complex view that is starting to fail due to out of memory
error. When I run explain on the select that fails, the extimated cost is in
the TRILLIONS. When I dump and restore the db, it is back to normal
(estiamted cost in the thousands), but within a few hours of normal use (db
has been running for months) these queries begin to fail and the cost is
back up in the stratosphere.

I am operating under the assumption that we have an index corruption because
things work upon restore and then degrade under usage.

Vacuum Analyze instantly blows up the query planning on a newly restored
db.

This database is frequently written and read from all the time.

I've adjusted various environmental variables such as random_page_cost, etc.
But have only seen minor improvements (est. costs in the BILLIONS vs.
TRILLIONS).

HELP?!!?

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 11:06 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #3606: Query Plan Failure or Index Corruption?

"David Tulloss" <dtulloss@computersoftwareinc.com> writes:
> I am operating under the assumption that we have an index corruption because
> things work upon restore and then degrade under usage.


It sounds much more like you're not vacuuming often enough and/or don't
have max_fsm_pages set high enough. However, without a lot more details
than you have provided here, we can only speculate. If you think there
is an actual bug involved, please read the reporting guidelines at
http://www.postgresql.org/docs/8.2/s...reporting.html

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:36 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com