Skip to content

Commit 4b482e9

Browse files
committed
Fix some documentation in pg_rewind
A confusion which comes a lot from users is that it is necessary to issue a checkpoint on a freshly-promoted standby so as its control file has up-to-date timeline information which is used by pg_rewind to validate the operation. Let's document that properly. This is back-patched down to 9.5 where pg_rewind has been introduced. Author: Michael Paquier Reviewed-by: Magnus Hagander Discussion: https://postgr.es/m/CABUevEz5bpvbwVsYCaSMV80CBZ5-82nkMzbb+Bu=h1m=rLdn=g@mail.gmail.com Backpatch-through: 9.5
1 parent e9d4cbe commit 4b482e9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/src/sgml/ref/pg_rewind.sgml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,15 @@ PostgreSQL documentation
221221
<refsect1>
222222
<title>Notes</title>
223223

224+
<para>
225+
When executing <application>pg_rewind</application> using an online
226+
cluster as source which has been recently promoted, it is necessary
227+
to execute a <command>CHECKPOINT</command> after promotion so as its
228+
control file reflects up-to-date timeline information, which is used by
229+
<application>pg_rewind</application> to check if the target cluster
230+
can be rewound using the designated source cluster.
231+
</para>
232+
224233
<refsect2>
225234
<title>How it works</title>
226235

0 commit comments

Comments
 (0)