Re: psql not responding to SIGINT upon db reconnection - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: psql not responding to SIGINT upon db reconnection
Date
Msg-id CAGECzQQF9xr-iMDSfZij0FkNn3mG9bw01BE4vR0k7AdV__jcBQ@mail.gmail.com
Whole thread Raw
In response to Re: psql not responding to SIGINT upon db reconnection  ("Tristan Partin" <tristan@neon.tech>)
List pgsql-hackers
On Wed, 31 Jan 2024 at 19:07, Tristan Partin <tristan@neon.tech> wrote:
> I was looking for documentation of PQsocket(), but didn't find any
> standalone (unless I completely missed it). So I just copied how
> PQsocket() is documented in PQconnectPoll(). I am happy to document it
> separately if you think it would be useful.

PQsocket its documentation is here:
https://www.postgresql.org/docs/16/libpq-status.html#LIBPQ-PQSOCKET

I think PQsocketPoll should probably have its API documentation
(describing arguments and return value at minimum) in this section of
the docs: https://www.postgresql.org/docs/16/libpq-async.html
And I think the example in the PQconnnectPoll API docs could benefit
from having PQsocketPoll used in that example.



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Flushing large data immediately in pqcomm
Next
From: Melih Mutlu
Date:
Subject: Re: Flushing large data immediately in pqcomm