From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add PQping and PQpingParams to libpq to allow detection of the s |
Date: | 2010-11-25 18:10:12 |
Message-ID: | E1PLgGq-0005Bl-5G@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2010-11-25 19:25:37 | Re: [COMMITTERS] How strings are sorted by LC_COLLATE specifically? |
Previous Message | Bruce Momjian | 2010-11-25 17:57:34 | pgsql: Fix getaddrinfo() in pgport to use proper parameters, as detecte |