Re: BUG #19633: Unexpected results of IN (subquery) with a non-deterministic collation

From: Andrey Rachitskiy <pl0h0yp1(at)gmail(dot)com>
To: Richard Guo <guofenglinux(at)gmail(dot)com>
Cc: Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Tender Wang <tndrwang(at)gmail(dot)com>, syzhong16(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19633: Unexpected results of IN (subquery) with a non-deterministic collation
Date: 2026-09-10 05:36:46
Message-ID: CAB8bMityRZ7=_9NMsGqAff1YLYhd5R8ZBT7UaSUG9K_ck8+OPA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

чт, 10 сент. 2026 г. в 05:10, Richard Guo <guofenglinux(at)gmail(dot)com>:

> On Thu, Sep 10, 2026 at 7:40 AM Alexander Korotkov <aekorotkov(at)gmail(dot)com>
> wrote:
> > I've revised the patch. The v3 changes are:
> > 1. The test now covers the hash path as well. v2 turned
> > enable_hashagg off, which is precisely the plan shape that was not
> > broken in isolation; both strategies are now exercised, each with its
> > plan and its result.
>
> I think it'd better to resue existing tables rather than create
> new ones for the tests. Maybe we can reuse test1cs/test1ci,
> test2cs/test2ci, test3cs/test3ci to reproduce this issue?
>

fix in v4

> Also on master we have this new GUC enable_groupagg. Maybe it'd
> better to use that instead of enable_sort?
>
> This GUC exists only on master (e01b23b84e4, July 2026) and is not present
on REL_14_STABLE through REL_19_STABLE, so it is preferable to keep
enable_sort=off — that way the tests won't diverge from the backpatch.

--
Regards,
Rachitskiy Andrey

Attachment Content-Type Size
v4-0001-Use-the-join-collation-when-unique-ifying-a-semij.patch text/x-patch 10.1 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jingtang Zhang 2026-09-10 06:30:14 Re: BUG #19664: nbtree: Assertion failure when a custom index AM reuses bthandler
Previous Message Richard Guo 2026-09-10 00:10:33 Re: BUG #19633: Unexpected results of IN (subquery) with a non-deterministic collation