Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c4f519

Browse filesBrowse files
committed
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
1 parent 1b2b19f commit 9c4f519
Copy full SHA for 9c4f519

File tree

Expand file treeCollapse file tree

5 files changed

+481
-105
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+481
-105
lines changed

‎doc/src/sgml/ref/pg_rewind.sgml

Copy file name to clipboardExpand all lines: doc/src/sgml/ref/pg_rewind.sgml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ PostgreSQL documentation
173173
with a role having sufficient permissions to execute the functions
174174
used by <application>pg_rewind</application> on the source server
175175
(see Notes section for details) or a superuser role. This option
176-
requires the source server to be running and not in recovery mode.
176+
requires the source server to be running and accepting connections.
177177
</para>
178178
</listitem>
179179
</varlistentry>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.