Commit 3dee636e authored by Heikki Linnakangas's avatar Heikki Linnakangas

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.
parent 691e595d
...@@ -405,6 +405,25 @@ PostgreSQL documentation ...@@ -405,6 +405,25 @@ PostgreSQL documentation
The following command-line options control the database connection parameters. The following command-line options control the database connection parameters.
<variablelist> <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> <varlistentry>
<term><option>-h <replaceable>host</replaceable></option></term> <term><option>-h <replaceable>host</replaceable></option></term>
<term><option>--host=<replaceable>host</replaceable></option></term> <term><option>--host=<replaceable>host</replaceable></option></term>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment