Skip to content

Commit 515150c

Browse files
author
Artur Zakirov
committed
Allow page backups from standby
1 parent 3c7d773 commit 515150c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

backup.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,6 @@ do_backup(bool smooth_checkpoint)
437437
if (pg_is_standby() && !from_replica)
438438
elog(ERROR, "backup is not allowed for standby");
439439

440-
/* Page backup is not allowed for replica instance */
441-
if (from_replica && current.backup_mode == BACKUP_MODE_DIFF_PAGE)
442-
elog(ERROR, "page backup is not allowed for standby");
443-
444440
/* show configuration actually used */
445441
elog(LOG, "========================================");
446442
elog(LOG, "backup start");

doc/pg_probackup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ This mode should be used with caution as it allows to delete WAL files required
291291

292292
### Backup from Standby
293293

294-
If replication is in use, starting with PostgreSQL 9.6 a backup can be taken not only from primary server, but also from standby. Backup taken from standby is absolutely interchangeable with backup taken from primary (bearing in mind possible replication delay). Page-level incremental backups are not allowed to perform from standby.
294+
If replication is in use, starting with PostgreSQL 9.6 a backup can be taken not only from primary server, but also from standby. Backup taken from standby is absolutely interchangeable with backup taken from primary (bearing in mind possible replication delay).
295295

296296
Currently it is required for primary database server to have `full_page_writes` turned `on` (in future this requirement may be relaxed in the case checksums are enabled on data pages).
297297

0 commit comments

Comments
 (0)