Re: Deleting prepared statements from libpq.

Jelte Fennema <me@jeltef.nl>

From: Jelte Fennema <me@jeltef.nl>
To: jian he <jian.universality@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, Dmitry Igrishin <dmitigr@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Daniele Varrazzo <daniele.varrazzo@gmail.com>
Date: 2023-06-19T12:49:44Z
Lists: pgsql-hackers

Attachments

On Mon, 19 Jun 2023 at 14:17, jian he <jian.universality@gmail.com> wrote:
> I am not sure the following two following function comments are right....

They were incorrect indeed. Attached is a patch with those two updated.

On Mon, 19 Jun 2023 at 14:17, jian he <jian.universality@gmail.com> wrote:
>
> On Mon, Jun 19, 2023 at 5:50 PM Jelte Fennema <me@jeltef.nl> wrote:
> >
> > On Mon, 19 Jun 2023 at 11:44, Jelte Fennema <me@jeltef.nl> wrote:
> > > Done
> >
> > Now with the actual attachment.
> >
> > PS. Another connection pooler (PgCat) now also supports prepared
> > statements, but only using Close not DEALLOCATE:
> > https://postgresml.org/blog/making-postgres-30-percent-faster-in-production
>
> it works on my local machine.
> I am not sure the following two following function comments are right....
>
> /*
>  * PQclosePrepared
>  *   Obtain information about a previously prepared statement
>  * ......
>
> /*
>  * PQclosePortal
>  *   Obtain information about a previously created portal
>  * ....

Commits

  1. libpq: Add support for Close on portals and statements

  2. Fix incorrect error message in libpq_pipeline