Skip to content

Commit 62953a7

Browse files
author
Artur Zakirov
committed
Default --archive-timeout is 300 seconds
1 parent f3bdedc commit 62953a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
static int server_version = 0;
3232

3333
/* Wait timeout for WAL segment archiving */
34-
uint32 archive_timeout = 0;
34+
uint32 archive_timeout = 300;
3535

3636
static bool in_backup = false; /* TODO: more robust logic */
3737
static int standby_message_timeout = 10 * 1000; /* 10 sec = default */

doc/pg_probackup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ Makes an autonomous backup that includes all necessary WAL files, by streaming t
412412

413413
--archive-timeout
414414

415-
Wait timeout for WAL segment archiving. `pg_probackup` waits after `pg_start_backup()` and `pg_stop_backup()` executing when WAL segments with necessary LSN will be archived. For backup from master WAL segment will be archived fast, because master instance switch WAL segment during backup. For backup from standby `pg_probackup` will wait a long time, because standby instance cannot switch WAL segment. By default timeout is infinite.
415+
Wait timeout for WAL segment archiving. `pg_probackup` waits after `pg_start_backup()` and `pg_stop_backup()` executing when WAL segments with necessary LSN will be archived. For backup from master WAL segment will be archived fast, because master instance switch WAL segment during backup. For backup from standby `pg_probackup` will wait a long time, because standby instance cannot switch WAL segment. By default timeout is 300 seconds.
416416

417417
-S _slot\_name_
418418
--slot=_slot\_name_

0 commit comments

Comments
 (0)