diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-02-25 19:39:10 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-02-25 19:39:10 +0200 |
commit | 3dee636e0404885d07885d41c0d70e50c784f324 (patch) | |
tree | 637e92abf074bf3e9ed980bfa808925b87027eb7 /doc/src | |
parent | 691e595dd9c7786d37d73ccd327f8c2b6f0dace6 (diff) | |
download | postgresql-3dee636e0404885d07885d41c0d70e50c784f324.tar.gz postgresql-3dee636e0404885d07885d41c0d70e50c784f324.zip |
Add -d option to pg_dumpall, for specifying a connection string.
Like with pg_basebackup and pg_receivexlog, it's a bit strange to call the
option -d/--dbname, when in fact you cannot pass a database name in it.
Original patch by Amit Kapila, heavily modified by me.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_dumpall.sgml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_dumpall.sgml b/doc/src/sgml/ref/pg_dumpall.sgml index 253ee01c0e4..5c6a101333f 100644 --- a/doc/src/sgml/ref/pg_dumpall.sgml +++ b/doc/src/sgml/ref/pg_dumpall.sgml @@ -406,6 +406,25 @@ PostgreSQL documentation <variablelist> <varlistentry> + <term><option>-d <replaceable class="parameter">connstr</replaceable></option></term> + <term><option>--dbname=<replaceable class="parameter">connstr</replaceable></option></term> + <listitem> + <para> + Specifies parameters used to connect to the server, as a connection + string. See <xref linkend="libpq-connstring"> for more information. + </para> + <para> + The option is called <literal>--dbname</> for consistency with other + client applications, but because <application>pg_dumpall</application> + needs to connect to many databases, database name in the connection + string will be ignored. Use <literal>-l</literal> option to specify + the name of the database used to dump global objects and to discover + what other databases should be dumped. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-h <replaceable>host</replaceable></option></term> <term><option>--host=<replaceable>host</replaceable></option></term> <listitem> |