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