forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit942305a
committed
Allow restore_command parameter to be changed with reload.
This commit changes restore_command from PGC_POSTMASTER to PGC_SIGHUP.As the side effect of this commit, restore_command can be reset toempty during archive recovery. In this setting, archive recoverytries to replay only WAL files available in pg_wal directory. This isthe same behavior as when the command that always fails is specifiedin restore_command.Note that restore_command still must be specified (not empty) whenstarting archive recovery, even after applying this commit. This isnecessary as the safeguard to prevent users from forgetting tospecify restore_command and starting archive recovery.Thanks to Peter Eisentraut, Michael Paquier, Andres Freund,Robert Haas and Anastasia Lubennikova for discussion.Author: Sergei KornilovReviewed-by: Kyotaro Horiguchi, Fujii MasaoDiscussion:https://postgr.es/m/2317771549527294@sas2-985f744271ca.qloud-c.yandex.net1 parent87ae969 commit942305a
File tree
3 files changed
+3
-3
lines changed- doc/src/sgml
- src/backend/utils/misc
3 files changed
+3
-3
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3567 | 3567 |
| |
3568 | 3568 |
| |
3569 | 3569 |
| |
3570 |
| - | |
| 3570 | + | |
| 3571 | + | |
3571 | 3572 |
| |
3572 | 3573 |
| |
3573 | 3574 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3699 | 3699 |
| |
3700 | 3700 |
| |
3701 | 3701 |
| |
3702 |
| - | |
| 3702 | + | |
3703 | 3703 |
| |
3704 | 3704 |
| |
3705 | 3705 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
253 | 253 |
| |
254 | 254 |
| |
255 | 255 |
| |
256 |
| - | |
257 | 256 |
| |
258 | 257 |
| |
259 | 258 |
| |
|
0 commit comments
Comments
(0)