Re: Recent 7.4 change slowed down a query by a factor of 3
В списке pgsql-performance по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Recent 7.4 change slowed down a query by a factor of 3 |
| Дата | |
| Msg-id | 22166.1055953267@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Recent 7.4 change slowed down a query by a factor of 3 (Bruno Wolff III <bruno@wolff.to>) |
| Список | pgsql-performance |
Bruno Wolff III <bruno@wolff.to> writes:
> After doing an initdb I got the expected plan.
Hm. I'm not sure what happened there --- I don't recall that we made
any initdb-needing changes in the past week or so. (If we did, we
should have forced initdb by incrementing catversion, but sometimes
people forget to do that.) The only change I can think of that's
related at all is that the outer query's "group by foo order by foo desc"
should now only require one sort step not two (which is probably why
my test went for the Sort/GroupAggregate plan not the HashAgg/Sort
plan you showed). But that shouldn't have affected the plan for the
inner SELECT DISTINCT query, AFAICS. Odd.
Probably not worth spending time on though.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера