From 7532cb36d1e8791611446ea1d8746dfaed5c9816 Mon Sep 17 00:00:00 2001 From: Arthur Zakirov Date: Fri, 23 Nov 2018 13:20:16 +0300 Subject: [PATCH] PGPRO-2180: Reasonable time --- src/backup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backup.c b/src/backup.c index 23139841..0e76dde7 100644 --- a/src/backup.c +++ b/src/backup.c @@ -1612,7 +1612,8 @@ wait_wal_lsn(XLogRecPtr lsn, bool is_start_lsn, bool wait_prev_segment) * to get LSN of last valid record prior to the target LSN. But only * in case of a backup from a replica. */ - if (!exclusive_backup && current.from_replica) + if (!exclusive_backup && current.from_replica && + (try_count > timeout / 4)) { XLogRecPtr res;