Re: Optimizer Doesn't Push Down Where Expressions on Rollups

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Re: Optimizer Doesn't Push Down Where Expressions on Rollups
Дата
Msg-id CAMbWs49zx2WFAzWGsay-X8PLdwboujtGsjSydJtsHa9xbAKHiA@mail.gmail.com
обсуждение исходный текст
Ответ на Optimizer Doesn't Push Down Where Expressions on Rollups  (Logan Bowers <logan.bowers@gmail.com>)
Ответы Re: Optimizer Doesn't Push Down Where Expressions on Rollups  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
In your case, the WHERE clauses would get pushed down into the subquery
for both queries, with/without the ROLLUP. But since the subquery uses
grouping/grouping sets, the WHERE clauses would be put in HAVING of the
subquery.

Then when we plan for the subquery, we will decide whether a HAVING
clause can be transfered into WHERE. Usually we do not do that if there
are any nonempty grouping sets. Because if any referenced column isn't
present in all the grouping sets, moving such a clause into WHERE would
potentially change the results.

Thanks
Richard

В списке pgsql-bugs по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16295: parsing error in pgdg-centos10-10-2.noarch.rpm/pgdg-redhat-all.repo
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16296: broken /etc/yum.repos.d/pgdg-redhat-all.repo