| From: | Robert Haas <rhaas(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Expose PQsocketPoll via libpq |
| Date: | 2024-04-02 14:25:38 |
| Message-ID: | E1rrf4z-0008o1-Pj@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Expose PQsocketPoll via libpq
This is useful when connecting to a database asynchronously via
PQconnectStart(), since it handles deciding between poll() and
select(), and some of the required boilerplate.
Tristan Partin, reviewed by Gurjeet Singh, Heikki Linnakangas, Jelte
Fennema-Nio, and me.
Discussion: http://postgr.es/m/D08WWCPVHKHN.3QELIKZJ2D9RZ@neon.tech
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/f5e4dedfa81f00de93b1b90d06c44cc50e052eaf
Modified Files
--------------
doc/src/sgml/libpq.sgml | 40 +++++++++++++++++++++++++++++++++++++++-
src/interfaces/libpq/exports.txt | 1 +
src/interfaces/libpq/fe-misc.c | 7 +++----
src/interfaces/libpq/libpq-fe.h | 4 ++++
4 files changed, 47 insertions(+), 5 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2024-04-02 14:30:30 | pgsql: Allow SIGINT to cancel psql database reconnections. |
| Previous Message | Thomas Munro | 2024-04-02 11:59:13 | pgsql: Provide API for streaming relation data. |