diff --git a/src/bin/pg_ctl/pg_ctl.cpp b/src/bin/pg_ctl/pg_ctl.cpp index 69b9f1095..49d0fc0ff 100644 --- a/src/bin/pg_ctl/pg_ctl.cpp +++ b/src/bin/pg_ctl/pg_ctl.cpp @@ -3981,7 +3981,7 @@ static void do_incremental_build(uint32 term) /* Concate connection str to primary host for performing rewind. */ errorno = sprintf_s(connstrSource, sizeof(connstrSource), - "host=%s port=%s dbname=postgres application_name=gs_rewind connect_timeout=5", + "host=%s port=%s dbname=postgres application_name=gs_rewind connect_timeout=5 rw_timeout=600", (streamConn->pghost != NULL) ? streamConn->pghost : streamConn->pghostaddr, streamConn->pgport); securec_check_ss_c(errorno, "\0", "\0");