Re: 8.4.7, incorrect estimate - Mailing list pgsql-performance

From Tom Lane
Subject Re: 8.4.7, incorrect estimate
Date
Msg-id 13918.1304110701@sss.pgh.pa.us
Whole thread Raw
In response to Re: 8.4.7, incorrect estimate  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-performance
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Also, make sure that you run ANALYZE against your temp table right
> before running your query.

Yeah.  It's fairly hard to credit that temp_document_ids has any stats
given the way-off estimates for it.  Keep in mind that autovacuum
can't help you on temp tables: since only your own session can
access a temp table, you have to ANALYZE it explicitly if you need
the planner to have decent stats about it.

            regards, tom lane

pgsql-performance by date:

Previous
From: James Mansion
Date:
Subject: Re: Performance
Next
From: Greg Smith
Date:
Subject: Re: Performance