]> granicus.if.org Git - postgresql/commitdiff
Fix some documentation in pg_rewind
authorMichael Paquier <michael@paquier.xyz>
Fri, 5 Apr 2019 01:38:26 +0000 (10:38 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 5 Apr 2019 01:38:26 +0000 (10:38 +0900)
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

doc/src/sgml/ref/pg_rewind.sgml

index 36e1ee5b1916f0c153320f9a2e6a2f5694d595b7..ee093598ad18e54b8e8bb584e01a0807fa105000 100644 (file)
@@ -221,6 +221,15 @@ PostgreSQL documentation
  <refsect1>
   <title>Notes</title>
 
+  <para>
+   When executing <application>pg_rewind</application> using an online
+   cluster as source which has been recently promoted, it is necessary
+   to execute a <command>CHECKPOINT</command> after promotion so as its
+   control file reflects up-to-date timeline information, which is used by
+   <application>pg_rewind</application> to check if the target cluster
+   can be rewound using the designated source cluster.
+  </para>
+
   <refsect2>
    <title>How it works</title>