On further testing, PQping also needs an explicit check for AUTH_REQ.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-connect.c | modified | +13 −3 |
| src/interfaces/libpq/libpq-int.h | modified | +1 −0 |