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: jian he <jian(dot)universality(at)gmail(dot)com>, Amit Langote <amitlangote09(at)gmail(dot)com>
Cc: 303677365(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19872: JSON_TABLE: an UNUSED PASSING argument's COLLATE leaks into the output columns (wrong results, persi
Date: 2026-11-30 23:57:39
Message-ID: CAGRkXqQ18z3=hKPh+5nQ2MEzqpPySEXf-8Q-7Bzjvmj2brcPUw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Jian,

Thanks for looking and for the comment text. With your diff a text
EXISTS column gets no collation, so sqljson_jsontable fails. A COLLATE
inside DEFAULT can also change the result collation, so I would keep
0002 as it is.

Adding Amit, since 0001 fixes a regression from e405a46c45b that can
make pg_upgrade from 18.6 fail.

Thanks,
Shihao

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message shihao zhong 2026-11-30 23:59:04 Re: BUG #19871: JSON_TABLE evaluates each PASSING argument once per column - a named variable $v gets different valu
Previous Message Laurenz Albe 2026-11-30 23:55:04 Re: SIMILAR TO expressions translate wildcards where they shouldn't