@@ -169,15 +169,10 @@ EOF
169
169
Specifies the name of the database to connect to. This is
170
170
equivalent to specifying <replaceable
171
171
class="parameter">dbname</replaceable> as the first non-option
172
- argument on the command line.
173
- </para>
174
- <para>
175
- If this parameter contains an <symbol>=</symbol> sign or starts
176
- with a valid <acronym>URI</acronym> prefix
177
- (<literal>postgresql://</literal>
178
- or <literal>postgres://</literal>), it is treated as a
179
- <parameter>conninfo</parameter> string. See <xref
180
- linkend="libpq-connstring"/> for more information.
172
+ argument on the command line. The <replaceable>dbname</replaceable>
173
+ can be a <link linkend="libpq-connstring">connection string</link>.
174
+ If so, connection string parameters will override any conflicting
175
+ command line options.
181
176
</para>
182
177
</listitem>
183
178
</varlistentry>
499
494
<listitem>
500
495
<para>
501
496
Never issue a password prompt. If the server requires password
502
- authentication and a password is not available by other means
497
+ authentication and a password is not available from other sources
503
498
such as a <filename>.pgpass</filename> file, the connection
504
499
attempt will fail. This option can be useful in batch jobs and
505
500
scripts where no user is present to enter a password.
@@ -519,13 +514,15 @@ EOF
519
514
<listitem>
520
515
<para>
521
516
Force <application>psql</application> to prompt for a
522
- password before connecting to a database.
517
+ password before connecting to a database, even if the password will
518
+ not be used.
523
519
</para>
524
520
525
521
<para>
526
- This option is never essential, since <application>psql</application>
527
- will automatically prompt for a password if the server demands
528
- password authentication. However, <application>psql</application>
522
+ If the server requires password authentication and a password is not
523
+ available from other sources such as a <filename>.pgpass</filename>
524
+ file, <application>psql</application> will prompt for a
525
+ password in any case. However, <application>psql</application>
529
526
will waste a connection attempt finding out that the server wants a
530
527
password. In some cases it is worth typing <option>-W</option> to avoid
531
528
the extra connection attempt.
0 commit comments