Re: query produces 1 GB temp file

Поиск
Список
Период
Сортировка
От John A Meinel
Тема Re: query produces 1 GB temp file
Дата
Msg-id 4206356C.9060308@arbash-meinel.com
обсуждение исходный текст
Ответ на query produces 1 GB temp file  (Dirk Lutzebaeck <lutzeb@aeccom.com>)
Ответы Re: query produces 1 GB temp file
Список pgsql-performance
Dirk Lutzebaeck wrote:

> Greg,
>
> Thanks for your analysis. But I dont get any better after bumping
> STATISTICS target from 10 to 200.
> explain analyze shows that the optimizer is still way off estimating
> the rows. Is this normal? It still produces a 1 GB temp file.
> I simplified the query a bit, now only two tables are involved (bi,
> df). I also vacuumed.


Are you just doing VACUUM? Or are you doing VACUUM ANALYZE? You might
also try VACUUM ANALYZE FULL (in the case that you have too many dead
tuples in the table).

VACUUM cleans up, but doesn't adjust any planner statistics without ANALYZE.

John
=:->


Вложения

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: query produces 1 GB temp file
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: horizontal partition