]> granicus.if.org Git - postgresql/commit
Add PQping and PQpingParams to libpq to allow detection of the server's
authorBruce Momjian <bruce@momjian.us>
Thu, 25 Nov 2010 18:09:38 +0000 (13:09 -0500)
committerBruce Momjian <bruce@momjian.us>
Thu, 25 Nov 2010 18:09:38 +0000 (13:09 -0500)
commitafd7d9adca971d9aae97e87ce617d8608d25ab10
tree645f9588fd502bfa649d33b1c9924ad9d01868a6
parent212a1c7b0b4164e15381af327ee6656ae7e02298
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.
doc/src/sgml/libpq.sgml
src/bin/pg_ctl/pg_ctl.c
src/interfaces/libpq/exports.txt
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/libpq-fe.h