Re: Inconsistent Behavior of GROUP BY ROLLUP in v17 vs master

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Inconsistent Behavior of GROUP BY ROLLUP in v17 vs master
Дата
Msg-id 3084029.1758638342@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Inconsistent Behavior of GROUP BY ROLLUP in v17 vs master  (邱宇航 <iamqyh@gmail.com>)
Ответы Re: Inconsistent Behavior of GROUP BY ROLLUP in v17 vs master
Список pgsql-hackers
=?utf-8?B?6YKx5a6H6Iiq?= <iamqyh@gmail.com> writes:
> And what about the query 2. This is caused by another commit, and
> it's not mentioned in the commit message or the mailing discussion.

That one indeed seems quite broken.  EXPLAIN confirms that it's
pushing the HAVING below the aggregation, which is simply wrong
because it fails to filter the all-null row(s) that the aggregation
node will create out of thin air.

Is there anything we can salvage from 67a54b9e, or should
we just revert it?

            regards, tom lane



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