| From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
|---|---|
| To: | Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: future of PQfn() |
| Date: | 2026-05-26 19:55:09 |
| Message-ID: | ahX6nb1aqh51IhHC@nathan |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Tue, May 26, 2026 at 10:42:47AM -0700, Jacob Champion wrote:
> Short-term, keeping it around seems fine.
>
> Long-term, it doesn't feel great that the alternatives we tell other
> people to use are... worse. Surely other clients of libpq run into the
> layering violation problem with prepared statements, as well?
Yup. Here's a related note in JDBC:
I wonder how difficult it would be to teach the protocol to advise clients
when prepared statements are deallocated...
FWIW I'm less concerned about the name collision problem. I was thinking
we could just document that libpq manages statements with a prefix like
"libpq_internal_". Any problems in that area seem likely to be intentional
breakage that we needn't worry about.
--
nathan
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Xuneng Zhou | 2026-05-26 20:01:09 | Re: Bound memory usage during manual slot sync retries |
| Previous Message | Nathan Bossart | 2026-05-26 19:39:26 | Re: expand refint docs with usage info |