Content-Length: 261443 | pFad | http://github.com/postgrespro/postgres/commit/fb0745fa0d706d1519d6e55e93d1dcae27e12e4d

FD Fix comment in fe-connect.c about PQping and pg_ctl · postgrespro/postgres@fb0745f · GitHub
Skip to content

Commit fb0745f

Browse files
committed
Fix comment in fe-connect.c about PQping and pg_ctl
Since f13ea95, pg_ctl does not use PQping(), but one comment did not get the call. Author: Euler Taveira Discussion: https://postgr.es/m/4b1deb4a-2771-416d-9710-ccd2fa66f058@www.fastmail.com
1 parent 353aa01 commit fb0745f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3919,8 +3919,7 @@ internal_ping(PGconn *conn)
39193919
return PQPING_NO_RESPONSE;
39203920

39213921
/*
3922-
* Report PQPING_REJECT if server says it's not accepting connections. (We
3923-
* distinguish this case mainly for the convenience of pg_ctl.)
3922+
* Report PQPING_REJECT if server says it's not accepting connections.
39243923
*/
39253924
if (strcmp(conn->last_sqlstate, ERRCODE_CANNOT_CONNECT_NOW) == 0)
39263925
return PQPING_REJECT;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/fb0745fa0d706d1519d6e55e93d1dcae27e12e4d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy