Re: alert clients when prepared statements are deallocated - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: alert clients when prepared statements are deallocated
Date
Msg-id CAGECzQRwr3yFmh1Hf9wyyYR0DjuSi0ZCiWHvYyY4pUp_ALF1bg@mail.gmail.com
Whole thread
In response to Re: alert clients when prepared statements are deallocated  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers
On Sat, Jun 6, 2026, 00:03 Nathan Bossart <nathandbossart@gmail.com> wrote:
Do we need to guard who can create protocol-level statements?  And if so,
how would we do that?

I think the only thing we'd need to guard against is a libpq user messing with libpq its own internal protocol-level namespace, let's call that "pqnamespace" for now. We'd add a new version of PQsendPrepare that would take a namespace, but we'd make that return an error if a user of libpq passed pqnamespace as the namespace argument. Similarly for the new PQsendClosePrepared variant that takes a namespace. That way we'd reserve that namespace.

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Fix OAuth validator docs for error_detail on internal errors
Next
From: Baji Shaik
Date:
Subject: Re: [PATCH] Fix memory leak in pgstat_progress_parallel_incr_param()