| От | Tom Lane |
|---|---|
| Тема | Re: Unfortunate pushing down of expressions below sort |
| Дата | |
| Msg-id | 1668738.1770336789@sss.pgh.pa.us обсуждение |
| Ответ на | Unfortunate pushing down of expressions below sort (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: Unfortunate pushing down of expressions below sort
|
| Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes:
> We push down expressions below a sort node, even though they could be
> evaluated above.
Yeah. That's a hangover from an ancient decision that sort/limit
would always be applied at the top of the plan tree. I'm too
lazy to check the details right now, but I think we already relaxed
that in some cases (or maybe it was about evaluating stuff
before/after GROUP BY?).
> That can very substantially increase the space needed for the
> sort.
Could decrease it too, eg if what you are outputting is
md5(some-wide-column). Not sure we are smart enough to tell
which way is better.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера