aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-02-03 10:19:57 -0500
committerPeter Eisentraut <peter_e@gmx.net>2018-02-03 10:19:57 -0500
commit1d81c093db81f63727436c736d9d27b7bedb4b66 (patch)
treef43908cdf70983e9b0128756ac033ee477c85e1e
parent794eb3a8f00519fac561831dee35f4ee557bd08b (diff)
downloadpostgresql-1d81c093db81f63727436c736d9d27b7bedb4b66.tar.gz
postgresql-1d81c093db81f63727436c736d9d27b7bedb4b66.zip
doc: Clarify psql --list documentation a bit more
-rw-r--r--doc/src/sgml/ref/psql-ref.sgml12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 7ea7edc3d10..6f9b30b673c 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -283,11 +283,17 @@ EOF
<listitem>
<para>
List all available databases, then exit. Other non-connection
- options are ignored. If an explicit database name is not
- found the <literal>postgres</literal> database, not the user's,
- will be targeted for connection. This is similar to the meta-command
+ options are ignored. This is similar to the meta-command
<command>\list</command>.
</para>
+
+ <para>
+ When this option is used, <application>psql</application> will connect
+ to the database <literal>postgres</literal>, unless a different database
+ is named on the command line (option <option>-d</option> or non-option
+ argument, possibly via a service entry, but not via an environment
+ variable).
+ </para>
</listitem>
</varlistentry>