Re: Is Hash Agg being used? 7.4 seems to handle this query worse than 7.3
В списке pgsql-general по дате отправления:
| От | Greg Stark |
|---|---|
| Тема | Re: Is Hash Agg being used? 7.4 seems to handle this query worse than 7.3 |
| Дата | |
| Msg-id | 87y94mobtc.fsf@stark.dyndns.tv обсуждение |
| Ответ на | Re: Is Hash Agg being used? 7.4 seems to handle this query worse than 7.3 (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Is Hash Agg being used? 7.4 seems to handle this query worse than 7.3
|
| Список | pgsql-general |
Tom Lane <tgl@sss.pgh.pa.us> writes: > The count(distinct) you've got in there turns it off. AAAH. That makes sense. Unfortunately I think I'm stuck with that, I'll have to check though. It was always a bit mysterious to me how postgres could implement count(distinct) without introducing a separate sort and aggregate for each occurrence. I suppose it could rewrite it into an inner grouping with the added column, then an outer grouping without it with a normal count(). But then that would only work with a single count(distinct). And I'm not clear it would win for this example either since there could actually be a pretty large number of distinct values on that column. hmm... Thanks for all the help. -- greg
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера