mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +03:00
Only allow one recovery target setting
The previous recovery.conf regime accepted multiple recovery_target* settings and used the last one. This does not translate well to the general GUC system. Specifically, under EXEC_BACKEND, the settings are written out not in any particular order, so the order in which they were originally set is not available to new processes. Rather than redesign the GUC system, it was decided to abandon the old behavior and only allow one recovery target setting. A second setting will cause an error. However, it is allowed to set the same parameter multiple times or unset a parameter and set a different one. Discussion: https://www.postgresql.org/message-id/flat/27802171543235530%40iva2-6ec8f0a6115e.qloud-c.yandex.net#701a59c837ad0bf8c244344aaf3ef5a4
This commit is contained in:
@@ -3221,7 +3221,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
|
||||
<varname>recovery_target_lsn</varname>, <varname>recovery_target_name</varname>,
|
||||
<varname>recovery_target_time</varname>, or <varname>recovery_target_xid</varname>
|
||||
can be used; if more than one of these is specified in the configuration
|
||||
file, the last entry will be used.
|
||||
file, an error will be raised.
|
||||
These parameters can only be set at server start.
|
||||
</para>
|
||||
|
||||
|
Reference in New Issue
Block a user