pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18984: Empty prepared statement from psql \parse triggers assert in PortalRunMulti
Date: Tue, 15 Jul 2025 12:54:46 +0900
Message-ID: <aHXRBhDtLqTSLU7A@paquier.xyz> (raw)
In-Reply-To: <715434.1752521761@sss.pgh.pa.us>
References: <18984-0f4778a6599ac3ae@postgresql.org>
	<715434.1752521761@sss.pgh.pa.us>

On Mon, Jul 14, 2025 at 03:36:01PM -0400, Tom Lane wrote:
> BTW, d55322b0d simply made it easy to trigger the bug from psql.
> If I use current psql to connect to older servers, I can demonstrate
> crashes (or sometimes "stack depth limit exceeded") back to v12.
> Pre-v12 is immune because it just returns a command tag of EXECUTE
> regardless of what is in the prepared statement.

Oh.  It's pretty cool to see that these new meta-commands are able to
find such problems more easily.  That was one of the reasons to have
them in v18.
--
Michael

Attachments:

  [application/pgp-signature] signature.asc (832B, ../aHXRBhDtLqTSLU7A@paquier.xyz/2-signature.asc)
  download

view thread (21+ messages)  latest in thread

Message-ID: <aHXRBhDtLqTSLU7A@paquier.xyz>
Permalink:  ../aHXRBhDtLqTSLU7A@paquier.xyz/
Also on:    postgresql.org/message-id/aHXRBhDtLqTSLU7A@paquier.xyz

 · 

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: michael@paquier.xyz, tgl@sss.pgh.pa.us, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18984: Empty prepared statement from psql \parse triggers assert in PortalRunMulti
  In-Reply-To: <aHXRBhDtLqTSLU7A@paquier.xyz>

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

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