Re: BUG #19872: JSON_TABLE: an UNUSED PASSING argument's COLLATE leaks into the output columns (wrong results, persi

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Cc: jian he <jian(dot)universality(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org, Amit Langote <amitlangote09(at)gmail(dot)com>, 303677365(at)qq(dot)com
Subject: Re: BUG #19872: JSON_TABLE: an UNUSED PASSING argument's COLLATE leaks into the output columns (wrong results, persi
Date: 2026-12-03 02:44:59
Message-ID: CAGRkXqRvdF5SAFyQUbfY0HGNr5oBcZ9RU58KTiF0S83so0iShw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Zsolt and Jian,

Zsolt, thanks for testing. Those are the cases I had in mind. With v1
on current master both queries return f and t, the same as master. The
PASSING cases from the report are still fixed.

Jian, thanks for the v2. With assign_expr_collations() on every part,
an explicit COLLATE in DEFAULT no longer reaches the result. That is
what changes those two queries. v1 only takes PASSING out and keeps
DEFAULT in the result like the branches of a CASE, so I would suggest
v1.

Thanks,
Shihao

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message shihao zhong 2026-12-03 02:53:18 Re: BUG #19846: dump/restore marks inherited NOT VALID not-null constraint as local
Previous Message Zsolt Parragi 2026-12-02 23:40:38 Re: BUG #19519: REPACK can fail due to missing chunk for toast value