Re: Wrong results with grouping sets

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2024-07-06T02:37:38Z
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 →
  1. Remove the RTE_GROUP RTE if we drop the groupClause

  2. Mark expressions nullable by grouping sets

  3. Introduce an RTE for the grouping step

Richard Guo <guofenglinux@gmail.com> writes:
> BTW, from catversion.h I read:

>  * Another common reason for a catversion update is a change in parsetree
>  * external representation, since serialized parsetrees appear in stored
>  * rules and new-style SQL functions.  Almost any change in primnodes.h or
>  * parsenodes.h will warrant a catversion update.

> Since this patchset changes the querytree produced by the parser, does
> this indicate that a catversion bump is needed?

Yes, it would.

			regards, tom lane