File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -455,6 +455,10 @@ do_backup_arclog(parray *backup_list)
455
455
if ((uint32 ) current .stop_lsn == 0 )
456
456
pg_switch_xlog (& current );
457
457
458
+ /* Archive backup is not available for a standby */
459
+ if (current .is_from_standby )
460
+ elog (ERROR_SYSTEM , _ ("Archive backup not allowed on a standby node" ));
461
+
458
462
/*
459
463
* Check if there is a full backup present on current timeline.
460
464
* For an incremental or full backup, we are sure that there is one
Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ Incremental backup
82
82
Backup only files or pages modified after the last verified backup.
83
83
84
84
Archive WAL backup
85
- Backup only archive WAL files.
85
+ Backup only archive WAL files. Archive backup is not available for
86
+ a standby node.
86
87
87
88
It is recommended to verify backup files as soon as possible after backup.
88
89
Unverified backup cannot be used in restore and in incremental backup.
You can’t perform that action at this time.
0 commit comments