Re: Two different execution plan for the same request

Поиск
Список
Период
Сортировка
От Yeb Havinga
Тема Re: Two different execution plan for the same request
Дата
Msg-id 4C3441EB.8010405@gmail.com
обсуждение исходный текст
Ответ на Re: Two different execution plan for the same request  ("JOUANIN Nicolas (44)" <nicolas.jouanin@dgfip.finances.gouv.fr>)
Список pgsql-performance
JOUANIN Nicolas (44) wrote:
>
> The strange thing is that this morning explain analyze now gives a
> much better duration :
>
> There were no modification made on the database except a restart
> yesterday evening and a vacuumdb --analyse ran at night.
If the earlier bad query was run on a fresh imported database that was
not ANALYZEd, it would explain the different and likely bad plan. If you
want to know for sure this is the cause, instead of e.g. faulty
hardware, you could verify redoing the import + query without analyze.

regards,
Yeb Havinga


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

Предыдущее
От: "JOUANIN Nicolas (44)"
Дата:
Сообщение: Re: Two different execution plan for the same request
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: [Slony1-general] WAL partition overloaded--by autovacuum?