diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-02-25 19:39:04 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-02-25 19:39:04 +0200 |
commit | 691e595dd9c7786d37d73ccd327f8c2b6f0dace6 (patch) | |
tree | a8fc34b3368316b469d381cfa6d203eb4ff57ae2 /doc/src | |
parent | a64e33f030f3ba379a0d3e22fe6bcda9dc3bbc60 (diff) | |
download | postgresql-691e595dd9c7786d37d73ccd327f8c2b6f0dace6.tar.gz postgresql-691e595dd9c7786d37d73ccd327f8c2b6f0dace6.zip |
Add -d/--dbname option to pg_dump.
You could already pass a database name just by passing it as the last
option, without -d. This is an alias for that, like the -d/--dbname option
in psql and many other client applications. For consistency.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_dump.sgml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml index 152edcbe6ed..6d0f214d423 100644 --- a/doc/src/sgml/ref/pg_dump.sgml +++ b/doc/src/sgml/ref/pg_dump.sgml @@ -818,6 +818,26 @@ PostgreSQL documentation <variablelist> <varlistentry> + <term><option>-d <replaceable class="parameter">dbname</replaceable></></term> + <term><option>--dbname=<replaceable class="parameter">dbname</replaceable></></term> + <listitem> + <para> + Specifies the name of the database to connect to. This is + equivalent to specifying <replaceable + class="parameter">dbname</replaceable> as the first non-option + argument on the command line. + </para> + <para> + If this parameter contains an <symbol>=</symbol> sign or starts + with a valid <acronym>URI</acronym> prefix + (<literal>postgresql://</literal> + or <literal>postgres://</literal>), it is treated as a + <parameter>conninfo</parameter> string. See <xref linkend="libpq-connect"> for more information. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-h <replaceable class="parameter">host</replaceable></option></term> <term><option>--host=<replaceable class="parameter">host</replaceable></option></term> <listitem> |