pgsql: On further testing, PQping also needs an explicit check for AUTH

Lists: pgsql-committers
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: On further testing, PQping also needs an explicit check for AUTH
Date: 2010-11-27 07:12:17
Message-ID: E1PMExF-00024p-9b@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

On further testing, PQping also needs an explicit check for AUTH_REQ.

The pg_fe_sendauth code might fail if it can't handle the authentication
request message type --- if so, ping should still say the server is up.

Branch
------
master

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

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 16 +++++++++++++---
src/interfaces/libpq/libpq-int.h | 1 +
2 files changed, 14 insertions(+), 3 deletions(-)