[GENERAL] postgres source code function "internal_ping" may be not right insome conditions - Mailing list pgsql-general

From lin
Subject [GENERAL] postgres source code function "internal_ping" may be not right insome conditions
Date
Msg-id 80e005e.e3dd.15aff8ed09c.Coremail.jluwln@163.com
Whole thread Raw
Responses Re: postgres source code function "internal_ping" may be not right in some conditions
List pgsql-general
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 :

if conn->status == CONNECTION_BAD  ,  and the  "conn->last_sqlstate" is "28000", the return value is PQPING_OK, it is not right.

Thanks,
 wln



 

pgsql-general by date:

Previous
From: Glen Huang
Date:
Subject: Re: [GENERAL] How to create unique index on multiple columns wherethe combination doesn't matter?
Next
From: "Greg Sabino Mullane"
Date:
Subject: Re: Run statements before pg_dump in same transaction?