Add PQping and PQpingParams to libpq to allow detection of the server's
Bruce Momjian <bruce@momjian.us>
Add PQping and PQpingParams to libpq to allow detection of the server's status, including a status where the server is running but refuses a postgres connection. Have pg_ctl use this new function. This fixes the case where pg_ctl reports that the server is not running (cannot connect) but in fact it is running.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/libpq.sgml | modified | +68 −0 |
| src/bin/pg_ctl/pg_ctl.c | modified | +13 −16 |
| src/interfaces/libpq/exports.txt | modified | +2 −0 |
| src/interfaces/libpq/fe-connect.c | modified | +53 −0 |
| src/interfaces/libpq/libpq-fe.h | modified | +10 −0 |