Hi,
all. I have test the function "internal_ping", and find in some conditions, the return result is not right.
the code, you can see :
http://code.taobao.org/p/pgsql953/src/src/interfaces/libpq/fe-connect.c
if conn->status == CONNECTION_BAD , and the "conn->last_sqlstate" is "28000", the return value is PQPING_OK, it is not right.
Thanks,
wln