fix pg_probackup in threadpool mode

threadpool is not compatable with WALSender, so use port+1 as replication port to use none-threadpool mode.
This commit is contained in:
huanglianjun
2021-02-08 14:14:29 +08:00
parent 6b90131ab8
commit 3628459aa5

View File

@ -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++;
}