[Patch proposal] libpq portal support

From: Sergei Fedorov <sergei(dot)a(dot)fedorov(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: [Patch proposal] libpq portal support
Date: 2019-10-16 19:11:32
Message-ID: CAENDX4JE-RGdRkMM5MCy5oW9EHU181VuqKkmiOvyFYKruQ6QLg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello everybody,

Our company was in desperate need of portals in async interface of libpq,
so we patched it.

We would be happy to upstream the changes.

The description of changes:

Two functions in libpq-fe.h:
PQsendPortalBindParams for sending a command to bind a portal to a
previously prepared statement;
PQsendPortalExecute for executing a previously bound portal with a given
number of rows.

A patch to pqParseInput3 in fe-protocol3.c to handle the `portal suspended`
message tag.

The patch is ready for review, but it lacks documentation, tests and usage
examples.

There are no functions for sending bind without params and no functions for
sync interface, but they can easily be added to the feature.

--
Thank you,
Sergei Fedorov

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2019-10-16 19:28:40 Re: v12 and pg_restore -f-
Previous Message Stephen Frost 2019-10-16 19:04:52 Re: v12 and pg_restore -f-