]> granicus.if.org Git - postgresql/commitdiff
doc: Clarify psql --list documentation a bit more
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 3 Feb 2018 15:19:57 +0000 (10:19 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 3 Feb 2018 15:20:42 +0000 (10:20 -0500)
doc/src/sgml/ref/psql-ref.sgml

index bdb109242e9b35a43036cb61053e8e4a08f974d4..f575bb4ffa908c228a3f40f60c6fa0fc7d21dd8f 100644 (file)
@@ -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>