Add -d option to pg_basebackup and pg_receivexlog, for connection string.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 25 Feb 2013 12:48:27 +0000 (14:48 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 25 Feb 2013 12:59:33 +0000 (14:59 +0200)
commitaa05c37e823a41056273e73f6b3d168009a67c3f
tree984b4da2ff71ffc6a4df286567428eba65cb92de
parent786170d74f30bc8d3017149dc444f3f3e29029a7
Add -d option to pg_basebackup and pg_receivexlog, for connection string.

Without this, there's no way to pass arbitrary libpq connection parameters
to these applications. It's a bit strange that the option is called
-d/--dbname, when in fact you can *not* pass a database name in it, but it's
consistent with other client applications where a connection string is also
passed using -d.

Original patch by Amit Kapila, heavily modified by me.
doc/src/sgml/ref/pg_basebackup.sgml
doc/src/sgml/ref/pg_receivexlog.sgml
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_receivexlog.c
src/bin/pg_basebackup/streamutil.c
src/bin/pg_basebackup/streamutil.h