Re: UNION removes almost all rows (not duplicates) - in fresh build of pg17! - Mailing list pgsql-bugs

From hubert depesz lubaczewski
Subject Re: UNION removes almost all rows (not duplicates) - in fresh build of pg17!
Date
Msg-id Zkx5u5kqtDcipxel@depesz.com
Whole thread Raw
In response to Re: UNION removes almost all rows (not duplicates) - in fresh build of pg17!  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-bugs
On Tue, May 21, 2024 at 09:54:25AM +1200, David Rowley wrote:
> Thanks for the report.
> It looks like it's a very simple fix.  The problem is I wasn't setting
> groupList when the grouping_is_sortable() returned false.  In the
> prior version, make_union_unique() always set that.
> The attached should apply cleanly up to d2a04470a.

Hi,
tested, and can confirm that applying this patch on top of
d2a04470aa6401c1938cc107e0b2c56c22a2321f solved the problem.

Best regards,

depesz




pgsql-bugs by date:

Previous
From: Japin Li
Date:
Subject: Re: BUG #18467: postgres_fdw (deparser) ignores LimitOption
Next
From: PG Bug reporting form
Date:
Subject: BUG #18473: Problems deployment postgresql for windows