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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy