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:20:42 -0500
commit6dbae688d8526e4f277c4a7bf85497e03a947e59 (patch)
tree3421601553bd41bc46dcd4c17873bd1725093933
parentdcc1e61cb23606bf3e90079a0529821939c0e9c6 (diff)
downloadpostgresql-6dbae688d8526e4f277c4a7bf85497e03a947e59.tar.gz
postgresql-6dbae688d8526e4f277c4a7bf85497e03a947e59.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 bdb109242e9..f575bb4ffa9 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -281,11 +281,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>