Add PQping and PQpingParams to libpq to allow detection of the server's

Bruce Momjian <bruce@momjian.us>

Commit: afd7d9adca971d9aae97e87ce617d8608d25ab10
Author: Bruce Momjian <bruce@momjian.us>
Date: 2010-11-25T18:09:38Z
Releases: 9.1.0
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

PathChange+/−
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