Expose PQsocketPoll via libpq

Robert Haas <rhaas@postgresql.org>

Commit: f5e4dedfa81f00de93b1b90d06c44cc50e052eaf
Author: Robert Haas <rhaas@postgresql.org>
Date: 2024-04-02T14:15:56Z
Releases: 17.0
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

Files

Documentation touched

Discussion