postgresql/src/backend/utils
Fujii Masao 942305a363 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 to
empty during archive recovery. In this setting, archive recovery
tries to replay only WAL files available in pg_wal directory. This is
the same behavior as when the command that always fails is specified
in restore_command.

Note that restore_command still must be specified (not empty) when
starting archive recovery, even after applying this commit. This is
necessary as the safeguard to prevent users from forgetting to
specify restore_command and starting archive recovery.

Thanks to Peter Eisentraut, Michael Paquier, Andres Freund,
Robert Haas and Anastasia Lubennikova for discussion.

Author: Sergei Kornilov
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/2317771549527294@sas2-985f744271ca.qloud-c.yandex.net
2020-12-02 11:00:15 +09:00
..
adt Move SHA2 routines to a new generic API layer for crypto hashes 2020-12-02 10:37:20 +09:00
cache Hash support for row types 2020-11-19 09:32:47 +01:00
error Centralize logic for skipping useless ereport/elog calls. 2020-11-23 19:10:46 -05:00
fmgr Make some sanity-check elogs more verbose 2020-11-23 13:10:03 -03:00
hash Code review for dynahash change. 2020-09-19 15:53:06 +12:00
init Move catalog index declarations 2020-11-07 12:26:24 +01:00
mb Fix some typos 2020-11-14 11:43:10 +09:00
misc Allow restore_command parameter to be changed with reload. 2020-12-02 11:00:15 +09:00
mmgr Use <unnamed> for name of unnamed portal's memory context 2020-09-08 17:15:00 +02:00
resowner Improve performance of "simple expressions" in PL/pgSQL. 2020-03-26 18:58:57 -04:00
sort Fix a few more generator scripts to produce pgindent-clean output. 2020-09-21 13:58:26 -04:00
time Fix two bugs in MaintainOldSnapshotTimeMapping. 2020-09-24 15:27:19 -04:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
errcodes.txt Make SQL/JSON error code names match SQL standard 2020-04-30 09:34:54 +02:00
Gen_dummy_probes.pl Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Gen_dummy_probes.sed Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Gen_fmgrtab.pl Remove useless entries for aggregate functions from fmgrtab.c. 2020-11-04 11:25:56 -05:00
generate-errcodes.pl Standardize order of use strict and use warnings in Perl code 2020-09-21 17:04:36 +02:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
probes.d Update copyrights for 2020 2020-01-01 12:21:45 -05:00