Skip to content

Commit e0a0dec

Browse files
committed
doc: mention psql -l uses the 'postgres' database by default
Reported-by: Mark Wood Bug: 14912 Discussion: https://postgr.es/m/20171116171735.1474.30450@wrigleys.postgresql.org Author: David G. Johnston Backpatch-through: 10
1 parent bb94ce4 commit e0a0dec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ EOF
283283
<listitem>
284284
<para>
285285
List all available databases, then exit. Other non-connection
286-
options are ignored. This is similar to the meta-command
286+
options are ignored. If an explicit database name is not
287+
found the <literal>postgres</literal> database, not the user's,
288+
will be targeted for connection. This is similar to the meta-command
287289
<command>\list</command>.
288290
</para>
289291
</listitem>

0 commit comments

Comments
 (0)