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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/915a29a10cdabfbe301dc7201299841339b9798f
Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 14 ++
src/bin/pg_basebackup/pg_basebackup.c | 357 +++++++++++++++++++++++++++++----
2 files changed, 332 insertions(+), 39 deletions(-)