public inbox for [email protected]  
help / color / mirror / Atom feed
From: Jacob Champion <[email protected]>
To: Nathan Bossart <[email protected]>
Cc: Tom Lane <[email protected]>
Cc: [email protected]
Subject: Re: alert clients when prepared statements are deallocated
Date: Thu, 4 Jun 2026 16:56:04 -0700
Message-ID: <CAOYmi+ndz7Dx5WdJu8zRPXLsA6U56jvcKnoT=ru2DhQtOKy=eA@mail.gmail.com> (raw)
In-Reply-To: <aiCZ60MNyTQ8_4BE@nathan>
References: <ahm_4eOKkkKJ3Gds@nathan>
	<[email protected]>
	<ahna7lre-xAn7DIS@nathan>
	<ah9VKGwwlgqF-hi7@nathan>
	<aiCZ60MNyTQ8_4BE@nathan>

On Wed, Jun 3, 2026 at 2:17 PM Nathan Bossart <[email protected]> wrote:
> Hm.  So there's actually a pretty obvious problem here.  Say a user
> executes something like PQsendQuery(conn, "DISCARD ALL") and then tries to
> execute an lo_* function (modified to use prepared statements) prior to
> consuming the result.  In that case, the callback won't be called in time
> and the LO function will fail.

Are you allowed to call lo_*/PQfn() in the middle of an operation like
that? I.e. does it work today?

--Jacob






view thread (13+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: alert clients when prepared statements are deallocated
  In-Reply-To: <CAOYmi+ndz7Dx5WdJu8zRPXLsA6U56jvcKnoT=ru2DhQtOKy=eA@mail.gmail.com>

* 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