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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 49cd8a3f810467632260f16c7779f19212c1d094
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-11-27T07:11:45Z
Releases: 9.1.0
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.

Files

PathChange+/−
src/interfaces/libpq/fe-connect.c modified +13 −3
src/interfaces/libpq/libpq-int.h modified +1 −0