| От | Tom Lane |
|---|---|
| Тема | Re: Bogus startup cost for WindowAgg |
| Дата | |
| Msg-id | 29317.1286991022@sss.pgh.pa.us обсуждение |
| Ответ на | Bogus startup cost for WindowAgg (Ants Aasma <ants.aasma@eesti.ee>) |
| Список | pgsql-performance |
Ants Aasma <ants.aasma@eesti.ee> writes:
> Seems that the window aggregate node doesn't take into account that it
> has to consume the whole input before outputting the first row.
Well, the reason it doesn't assume that is it's not true ;-). In this
particular case it's true, but more generally you only have to read the
current input partition, and often not even all of that.
I'm not sure offhand how much intelligence would have to be added to
make a reasonable estimate of the effects of having to read ahead of the
current input row, but it's probably not trivial. We haven't spent much
time at all yet on creating a realistic cost model for WindowAgg...
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера