Re: 8.4.7, incorrect estimate

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 8.4.7, incorrect estimate
Дата
Msg-id 13918.1304110701@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 8.4.7, incorrect estimate  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список 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 по дате отправления:

Предыдущее
От: James Mansion
Дата:
Сообщение: Re: Performance
Следующее
От: Greg Smith
Дата:
Сообщение: Re: Performance