forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfd26f78
committed
Archive timeline history files in standby if archive_mode is set to "always".
Previously the standby server didn't archive timeline history filesstreamed from the primary even when archive_mode is set to "always",while it archives the streamed WAL files. This could cause the PITR tofail because there was no required timeline history file in the archive.The cause of this issue was that walreceiver didn't mark those files asready for archiving.This commit makes walreceiver mark those streamed timeline historyfiles as ready for archiving if archive_mode=always. Then the archiverprocess archives the marked timeline history files.Back-patch to all supported versions.Reported-by: Grigory SmolkinAuthor: Grigory Smolkin, Fujii MasaoReviewed-by: David Zhang, Anastasia LubennikovaDiscussion:https://postgr.es/m/54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru1 parente66bcfb commitfd26f78
File tree
2 files changed
+11
-1
lines changed- doc/src/sgml
- src/backend/replication
2 files changed
+11
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1395 | 1395 |
| |
1396 | 1396 |
| |
1397 | 1397 |
| |
1398 |
| - | |
| 1398 | + | |
| 1399 | + | |
1399 | 1400 |
| |
1400 | 1401 |
| |
1401 | 1402 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
758 | 758 |
| |
759 | 759 |
| |
760 | 760 |
| |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
761 | 770 |
| |
762 | 771 |
| |
763 | 772 |
| |
|
0 commit comments
Comments
(0)