agora inbox for pgsql-bugs@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrey Rachitskiy <pl0h0yp1@gmail.com>
Cc: i.portnov@compassplus.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19487: Error while executing SQL query involving XML parsing
Date: Tue, 01 Sep 2026 12:21:27 -0400
Message-ID: <1260128.1788279687@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB8bMivZXRRpbjo5vjDsz0RofixSDRUa4q1VsAsEKDUQX9h28A@mail.gmail.com>
References: <19487-367258bc497b923a@postgresql.org>
	<CAB8bMisngV0L9L3dZkpuStTboHXkVPr0=NBhCNpDxg3r+Bheog@mail.gmail.com>
	<1589702.1787946553@sss.pgh.pa.us>
	<CAB8bMitYCBLs16zVzNLgB34go2s4p9mraGsvcuDeUKyO+a4=cA@mail.gmail.com>
	<CAB8bMisnPP=Ck=BX4UfHL1eTFLMFJ_RznsVXtqy3H=P+6tugjg@mail.gmail.com>
	<255521.1788039871@sss.pgh.pa.us>
	<CAB8bMivhR6_d33YFc-cAKT-Qa8Vj8MHicVUexyJSySTi+c4k_g@mail.gmail.com>
	<880213.1788113038@sss.pgh.pa.us>
	<CAB8bMivZXRRpbjo5vjDsz0RofixSDRUa4q1VsAsEKDUQX9h28A@mail.gmail.com>

Andrey Rachitskiy <pl0h0yp1@gmail.com> writes:
> вс, 30 авг. 2026 г. в 23:04, Tom Lane <tgl@sss.pgh.pa.us>:
>> I've got mixed emotions about back-patching this.  It's not really
>> a bug fix, because we already disclaim the safety of relying on
>> CASE for this purpose, cf [1].  I think it might still be reasonable
>> to sneak into v19, but I'm unsure that putting it into 18 is a good
>> idea.

> On back-patching: I share the hesitation about 18. At the same time,
> SQL-language functions with this pattern did work on earlier branches and
> broke for some users after the plan-cache change in 18. I would be fine
> with putting it into 19 and master. If we back-patch to 18, I would treat
> it as a narrow regression fix rather than a semantic promise about CASE.
> Either way works for me.

After thinking about it for a day or so, I elected to push just as far
as 19.  While it's true that this fixes the reported problem, it seems
possible that it de-optimizes somebody else's query.  People don't
like that in minor releases...

			regards, tom lane





view thread (11+ messages)  latest in thread

Message-ID: <1260128.1788279687@sss.pgh.pa.us>
Permalink:  ../1260128.1788279687@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1260128.1788279687@sss.pgh.pa.us

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pl0h0yp1@gmail.com, i.portnov@compassplus.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #19487: Error while executing SQL query involving XML parsing
  In-Reply-To: <1260128.1788279687@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox