pgsql: Remove the RTE_GROUP RTE if we drop the groupClause
В списке pgsql-committers по дате отправления:
| От | Richard Guo |
|---|---|
| Тема | pgsql: Remove the RTE_GROUP RTE if we drop the groupClause |
| Дата | |
| Msg-id | E1t48Zu-002Iuz-3K@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Remove the RTE_GROUP RTE if we drop the groupClause For an EXISTS subquery, the only thing that matters is whether it returns zero or more than zero rows. Therefore, we remove certain SQL features that won't affect that, among them the GROUP BY clauses. After we drop the groupClause, we'd better remove the RTE_GROUP RTE and clear the hasGroupRTE flag, as they depend on the groupClause. Failing to do so could result in a bogus RTE_GROUP entry in the parent query, leading to an assertion failure on the hasGroupRTE flag. Reported-by: David Rowley Author: Richard Guo Discussion: https://postgr.es/m/CAApHDvp2_yht8uPLyWO-kVGWZhYvx5zjGfSrg4fBQ9fsC13V0g@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ffe12d1d22e73d7bcda1f0ee9af33d04fab199b2 Modified Files -------------- src/backend/optimizer/plan/subselect.c | 24 ++++++++++++++++++++++++ src/test/regress/expected/join.out | 15 +++++++++++++++ src/test/regress/sql/join.sql | 8 ++++++++ 3 files changed, 47 insertions(+)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера