Re: v17 Possible Union All Bug - Mailing list pgsql-bugs

From Alexander Korotkov
Subject Re: v17 Possible Union All Bug
Date
Msg-id CAPpHfds3HKGo88b3f7Lz9yAKd29_N76cGDneVOgHDWgUCjXK4A@mail.gmail.com
Whole thread Raw
In response to Re: v17 Possible Union All Bug  (Andrei Lepikhov <a.lepikhov@postgrespro.ru>)
Responses Re: v17 Possible Union All Bug  (Andrei Lepikhov <a.lepikhov@postgrespro.ru>)
List pgsql-bugs
On Sun, Feb 4, 2024 at 6:57 AM Andrei Lepikhov
<a.lepikhov@postgrespro.ru> wrote:
> The simple fix is in the attachment. But I'm not sure we should fix
> GROUP-BY optimization instead of the more general issue.
> The source of the problem is root->group_pathkeys, which contains
> grouping pathkeys and aggregate pathkeys. For now, their 'sortref'
> values could intersect, and we can differ which one references the query
> target list and which one the target list of the aggregate.
> So, I would like to get advice here: should we make a quick fix here, or
> is such a mess in the sortref values not a mess and designed for some
> purposes?

Thank you, Andrei.  I think we should apply this fix for now, while
better refactoring could be done in future.  I've revised your fix
with more comments and a commit message.  I'm going to push it if
there are no objections.

------
Regards,
Alexander Korotkov

Attachment

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: BUG #18336: Inconsistency in PostgreSQL 16 Documentation for SHOW Command
Next
From: just madhu
Date:
Subject: pgjdbc is not working with PKCS8 certificates with password