Re: Slow query after upgrade from 8.2 to 8.4

Поиск
Список
Период
Сортировка
От Mark Kirkwood
Тема Re: Slow query after upgrade from 8.2 to 8.4
Дата
Msg-id 4EE7CDEF.1040709@catalyst.net.nz
обсуждение исходный текст
Ответ на Re: Slow query after upgrade from 8.2 to 8.4  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Slow query after upgrade from 8.2 to 8.4  (Kaloyan Iliev Iliev <kaloyan@digsys.bg>)
Список pgsql-performance
On 10/12/11 04:30, Tom Lane wrote:
> However, it's not apparent to me why you would see any difference
> between 8.2 and 8.4 on this type of query. I tried a query analogous
> to this one on both, and got identical plans. I'm guessing that your
> slowdown is due to not having updated statistics on the new
> installation, or perhaps failing to duplicate some relevant settings.

I notice he has 8.4.*8*... I wonder if he's running into the poor
estimation bug for sub-selects/semi joins that was fixed in 8.4.9.

Kaloyan, can you try the query in 8.4.9?

regards

Mark

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

Предыдущее
От: Jon Nelson
Дата:
Сообщение: Re: select distinct uses index scan vs full table scan
Следующее
От: Tom Lane
Дата:
Сообщение: Re: copy vs. C function