mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Integrate recovery.conf into postgresql.conf
recovery.conf settings are now set in postgresql.conf (or other GUC sources). Currently, all the affected settings are PGC_POSTMASTER; this could be refined in the future case by case. Recovery is now initiated by a file recovery.signal. Standby mode is initiated by a file standby.signal. The standby_mode setting is gone. If a recovery.conf file is found, an error is issued. The trigger_file setting has been renamed to promote_trigger_file as part of the move. The documentation chapter "Recovery Configuration" has been integrated into "Server Configuration". pg_basebackup -R now appends settings to postgresql.auto.conf and creates a standby.signal file. Author: Fujii Masao <masao.fujii@gmail.com> Author: Simon Riggs <simon@2ndquadrant.com> Author: Abhijit Menon-Sen <ams@2ndquadrant.com> Author: Sergei Kornilov <sk@zsrv.org> Discussion: https://www.postgresql.org/message-id/flat/607741529606767@web3g.yandex.ru/
This commit is contained in:
@@ -214,10 +214,11 @@ PostgreSQL documentation
|
||||
<listitem>
|
||||
|
||||
<para>
|
||||
Write a minimal <filename>recovery.conf</filename> in the output
|
||||
Create <filename>standby.signal</filename> and append connection settings
|
||||
to <filename>postgresql.auto.conf</filename> in the output
|
||||
directory (or into the base archive file when using tar format) to
|
||||
ease setting up a standby server.
|
||||
The <filename>recovery.conf</filename> file will record the connection
|
||||
The <filename>postgresql.auto.conf</filename> file will record the connection
|
||||
settings and, if specified, the replication slot
|
||||
that <application>pg_basebackup</application> is using, so that the
|
||||
streaming replication will use the same settings later on.
|
||||
@@ -470,7 +471,7 @@ PostgreSQL documentation
|
||||
replication slot. If the base backup is intended to be used as a
|
||||
streaming replication standby using replication slots, it should then
|
||||
use the same replication slot name
|
||||
in <filename>recovery.conf</filename>. That way, it is ensured that
|
||||
in <xref linkend="guc-primary-slot-name"/>. That way, it is ensured that
|
||||
the server does not remove any necessary WAL data in the time between
|
||||
the end of the base backup and the start of streaming replication.
|
||||
</para>
|
||||
|
||||
Reference in New Issue
Block a user