Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
doc: mention psql -l uses the 'postgres' database by default
authorBruce Momjian <bruce@momjian.us>
Tue, 23 Jan 2018 23:22:56 +0000 (18:22 -0500)
committerBruce Momjian <bruce@momjian.us>
Tue, 23 Jan 2018 23:22:56 +0000 (18:22 -0500)
Reported-by: Mark Wood
Bug: 14912

Discussion: https://postgr.es/m/20171116171735.1474.30450@wrigleys.postgresql.org

Author: David G. Johnston

Backpatch-through: 10

doc/src/sgml/ref/psql-ref.sgml

index 525464968fdab5a70b8bced6496a57b504c3a574..bdb109242e9b35a43036cb61053e8e4a08f974d4 100644 (file)
@@ -281,7 +281,9 @@ EOF
       <listitem>
       <para>
       List all available databases, then exit. Other non-connection
-      options are ignored. This is similar to the meta-command
+      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
       <command>\list</command>.
       </para>
       </listitem>