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/[email protected]
1 parent 353aa01 commit fb0745f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/interfaces/libpq/fe-connect.c

+1-2
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)