Skip to content

Commit 1d81c09

Browse files
committed
doc: Clarify psql --list documentation a bit more
1 parent 794eb3a commit 1d81c09

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

+9-3
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,17 @@ EOF
283283
<listitem>
284284
<para>
285285
List all available databases, then exit. Other non-connection
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
286+
options are ignored. This is similar to the meta-command
289287
<command>\list</command>.
290288
</para>
289+
290+
<para>
291+
When this option is used, <application>psql</application> will connect
292+
to the database <literal>postgres</literal>, unless a different database
293+
is named on the command line (option <option>-d</option> or non-option
294+
argument, possibly via a service entry, but not via an environment
295+
variable).
296+
</para>
291297
</listitem>
292298
</varlistentry>
293299

0 commit comments

Comments
 (0)