From 06affc74672c985b26e537e32b6550939bfe8c5a Mon Sep 17 00:00:00 2001 From: Marco Slot Date: Thu, 1 Sep 2022 13:59:14 +0200 Subject: [PATCH] Fix ReportConnectionError for empty error messages --- src/backend/distributed/connection/remote_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/distributed/connection/remote_commands.c b/src/backend/distributed/connection/remote_commands.c index c5aeefd51..6ae39f104 100644 --- a/src/backend/distributed/connection/remote_commands.c +++ b/src/backend/distributed/connection/remote_commands.c @@ -256,7 +256,7 @@ ReportConnectionError(MultiConnection *connection, int elevel) messageDetail = pchomp(PQerrorMessage(pgConn)); } - if (messageDetail) + if (messageDetail && messageDetail[0] != '\0') { ereport(elevel, (errcode(ERRCODE_CONNECTION_FAILURE), errmsg("connection to the remote node %s:%d failed with the "