We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent794eb3a commit1d81c09Copy full SHA for 1d81c09
doc/src/sgml/ref/psql-ref.sgml
@@ -283,11 +283,17 @@ EOF
283
<listitem>
284
<para>
285
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
+ options are ignored. This is similar to the meta-command
289
<command>\list</command>.
290
</para>
+
+ <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>
297
</listitem>
298
</varlistentry>
299