postgres source code function "internal_ping" may be not right in some conditions

From: lin <jluwln(at)163(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: postgres source code function "internal_ping" may be not right in some conditions
Date: 2017-03-24 09:03:54
Message-ID: 80e005e.e3dd.15aff8ed09c.Coremail.jluwln@163.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 :
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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2017-03-24 13:18:40 Re: Run statements before pg_dump in same transaction?
Previous Message Glen Huang 2017-03-24 06:47:20 Re: How to create unique index on multiple columns where the combination doesn't matter?