From 3628459aa5a613e664d1a36e6542775ce831476e Mon Sep 17 00:00:00 2001 From: huanglianjun Date: Mon, 8 Feb 2021 14:14:29 +0800 Subject: [PATCH] fix pg_probackup in threadpool mode threadpool is not compatable with WALSender, so use port+1 as replication port to use none-threadpool mode. --- src/bin/pg_probackup/pgut.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/pg_probackup/pgut.cpp b/src/bin/pg_probackup/pgut.cpp index da4844054..f0525fb1d 100644 --- a/src/bin/pg_probackup/pgut.cpp +++ b/src/bin/pg_probackup/pgut.cpp @@ -49,7 +49,7 @@ void discard_response(PGconn *conn); static PGresult *pgut_async_query(PGconn *conn, const char *query, int nParams, const char **params, bool text_result); - +extern char* inc_dbport(const char* dbport); /* is not used now #define DefaultHost "localhost" may be remove in the future*/ #define DefaultTty "" #define DefaultOption "" @@ -709,7 +709,7 @@ PGconn* pgut_connect_replication(const char *host, const char *port, if (port) { keywords[i] = "port"; - values[i] = port; + values[i] = inc_dbport(port); i++; }