pgsql: Make pull_var_clause() handle GroupingFuncs exactly like Aggrefs
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Make pull_var_clause() handle GroupingFuncs exactly like Aggrefs |
| Дата | |
| Msg-id | E1npAnR-000MU6-Sk@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Make pull_var_clause() handle GroupingFuncs exactly like Aggrefs. This follows in the footsteps of commit 2591ee8ec by removing one more ill-advised shortcut from planning of GroupingFuncs. It's true that we don't intend to execute the argument expression(s) at runtime, but we still have to process any Vars appearing within them, or we risk failure at setrefs.c time (or more fundamentally, in EXPLAIN trying to print such an expression). Vars in upper plan nodes have to have referents in the next plan level, whether we ever execute 'em or not. Per bug #17479 from Michael J. Sullivan. Back-patch to all supported branches. Richard Guo Discussion: https://postgr.es/m/17479-6260deceaf0ad304@postgresql.org Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/79b58c6f684315d39dfdbd721da7576d90bd9f99 Modified Files -------------- src/backend/optimizer/util/var.c | 10 +---- src/test/regress/expected/groupingsets.out | 64 ++++++++++++++++++++++++++++++ src/test/regress/sql/groupingsets.sql | 23 +++++++++++ 3 files changed, 89 insertions(+), 8 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера