Re: Inconsistent Behavior of GROUP BY ROLLUP in v17 vs master
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 邱宇航 <iamqyh@gmail.com>
Cc: Richard Guo <guofenglinux@gmail.com>, David Rowley <dgrowleyml@gmail.com>,
Bruce Momjian <bruce@momjian.us>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2025-09-23T14:39:02Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix test case from 40c242830
- ee49f2cf447a 18.1 landed
-
Fix pushdown of degenerate HAVING clauses
- 40c2428307b8 18.1 landed
- 18d261409348 19 (unreleased) landed
-
Allow pushdown of HAVING clauses with grouping sets
- 67a54b9e83d3 18.0 cited
-
Mark expressions nullable by grouping sets
- f5050f795aea 18.0 cited
=?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