Skip to content

Commit 915a29a

Browse files
committed
Add support for generating minimal recovery.conf when doing base backups
Adds commandline option -R to pg_basebackup that creates a recovery.conf which enables standby mode using the same parameters that pg_basebackup used to connect to the master, and writes it into the output directory (or injects it in the tar file when tar format is used). Zoltan Boszormenyi, modified by Magnus Hagander, reviewed by Amit Kapila & Fujii Masao
1 parent 940d136 commit 915a29a

File tree

2 files changed

+332
-39
lines changed

2 files changed

+332
-39
lines changed

doc/src/sgml/ref/pg_basebackup.sgml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,20 @@ PostgreSQL documentation
188188
</listitem>
189189
</varlistentry>
190190

191+
<varlistentry>
192+
<term><option>-R</option></term>
193+
<term><option>--write-recovery-conf</option></term>
194+
<listitem>
195+
196+
<para>
197+
Write a minimal recovery.conf in the output directory (or into
198+
the base archive file when using tar format) to ease setting
199+
up a standby server.
200+
</para>
201+
202+
</listitem>
203+
</varlistentry>
204+
191205
<varlistentry>
192206
<term><option>-x</option></term>
193207
<term><option>--xlog</option></term>

0 commit comments

Comments
 (0)