0001-pg_ctl-does-not-rely-on-PQping-anymore.patch
text/x-patch
Filename: 0001-pg_ctl-does-not-rely-on-PQping-anymore.patch
Type: text/x-patch
Part: 0
Message:
fix libpq comment
Patch
Format: format-patch
Series: patch 0001
Subject: pg_ctl does not rely on PQping anymore
| File | + | − |
|---|---|---|
| src/interfaces/libpq/fe-connect.c | 1 | 2 |
From 3055de48fe71f47df357114c7a42db05edcdb290 Mon Sep 17 00:00:00 2001 From: Euler Taveira <euler.taveira@enterprisedb.com> Date: Thu, 6 Jan 2022 20:50:30 -0300 Subject: [PATCH] pg_ctl does not rely on PQping anymore Since commit f13ea95f9e4, PQping is not used by pg_ctl. --- src/interfaces/libpq/fe-connect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 9b6a6939f0..dfebfd1096 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -3919,8 +3919,7 @@ internal_ping(PGconn *conn) return PQPING_NO_RESPONSE; /* - * Report PQPING_REJECT if server says it's not accepting connections. (We - * distinguish this case mainly for the convenience of pg_ctl.) + * Report PQPING_REJECT if server says it's not accepting connections. */ if (strcmp(conn->last_sqlstate, ERRCODE_CANNOT_CONNECT_NOW) == 0) return PQPING_REJECT; -- 2.20.1