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 parentdcc1e61 commit6dbae68Copy full SHA for 6dbae68
doc/src/sgml/ref/psql-ref.sgml
@@ -281,11 +281,17 @@ EOF
281
<listitem>
282
<para>
283
List all available databases, then exit. Other non-connection
284
- options are ignored. If an explicit database name is not
285
- found the <literal>postgres</literal> database, not the user's,
286
- will be targeted for connection. This is similar to the meta-command
+ options are ignored. This is similar to the meta-command
287
<command>\list</command>.
288
</para>
+
+ <para>
289
+ When this option is used, <application>psql</application> will connect
290
+ to the database <literal>postgres</literal>, unless a different database
291
+ is named on the command line (option <option>-d</option> or non-option
292
+ argument, possibly via a service entry, but not via an environment
293
+ variable).
294
+ </para>
295
</listitem>
296
</varlistentry>
297