Add support for generating minimal recovery.conf when doing base backups

Magnus Hagander <magnus@hagander.net>

Commit: 915a29a10cdabfbe301dc7201299841339b9798f
Author: Magnus Hagander <magnus@hagander.net>
Date: 2013-01-05T15:54:06Z
Releases: 9.3.0
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

Files

PathChange+/−
doc/src/sgml/ref/pg_basebackup.sgml modified +14 −0
src/bin/pg_basebackup/pg_basebackup.c modified +318 −39