pgsql: Add PQping and PQpingParams to libpq to allow detection of the s

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема pgsql: Add PQping and PQpingParams to libpq to allow detection of the s
Дата
Msg-id E1PLgGq-0005Bl-5G@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=afd7d9adca971d9aae97e87ce617d8608d25ab10

Modified Files
--------------
doc/src/sgml/libpq.sgml           |   68 +++++++++++++++++++++++++++++++++++++
src/bin/pg_ctl/pg_ctl.c           |   29 +++++++---------
src/interfaces/libpq/exports.txt  |    2 +
src/interfaces/libpq/fe-connect.c |   53 ++++++++++++++++++++++++++++
src/interfaces/libpq/libpq-fe.h   |   10 +++++
5 files changed, 146 insertions(+), 16 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Fix getaddrinfo() in pgport to use proper parameters, as detecte
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Improve pg_ctl "cannot connect" warning, per suggestion from Mag