Add -d option to pg_basebackup and pg_receivexlog, for connection string.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_basebackup.sgml | modified | +17 −0 |
| doc/src/sgml/ref/pg_receivexlog.sgml | modified | +17 −0 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +6 −1 |
| src/bin/pg_basebackup/pg_receivexlog.c | modified | +6 −1 |
| src/bin/pg_basebackup/streamutil.c | modified | +64 −23 |
| src/bin/pg_basebackup/streamutil.h | modified | +1 −0 |