mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Allow pg_rewind to use a standby server as the source system.
Using a hot standby server as the source has not been possible, because pg_rewind creates a temporary table in the source system, to hold the list of file ranges that need to be fetched. Refactor it to queue up the file fetch requests in pg_rewind's memory, so that the temporary table is no longer needed. Also update the logic to compute 'minRecoveryPoint' correctly, when the source is a standby server. Reviewed-by: Kyotaro Horiguchi, Soumyadeep Chakraborty Discussion: https://www.postgresql.org/message-id/0c5b3783-af52-3ee5-f8fa-6e794061f70d%40iki.fi
This commit is contained in:
@@ -173,7 +173,7 @@ PostgreSQL documentation
|
||||
with a role having sufficient permissions to execute the functions
|
||||
used by <application>pg_rewind</application> on the source server
|
||||
(see Notes section for details) or a superuser role. This option
|
||||
requires the source server to be running and not in recovery mode.
|
||||
requires the source server to be running and accepting connections.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
Reference in New Issue
Block a user