@@ -159,15 +159,10 @@ EOF
159
159
Specifies the name of the database to connect to. This is
160
160
equivalent to specifying <replaceable
161
161
class="parameter">dbname</replaceable> as the first non-option
162
- argument on the command line.
163
- </para>
164
- <para>
165
- If this parameter contains an <symbol>=</symbol> sign or starts
166
- with a valid <acronym>URI</acronym> prefix
167
- (<literal>postgresql://</literal>
168
- or <literal>postgres://</literal>), it is treated as a
169
- <parameter>conninfo</parameter> string. See <xref
170
- linkend="libpq-connstring"/> for more information.
162
+ argument on the command line. The <replaceable>dbname</replaceable>
163
+ can be a <link linkend="libpq-connstring">connection string</link>.
164
+ If so, connection string parameters will override any conflicting
165
+ command line options.
171
166
</para>
172
167
</listitem>
173
168
</varlistentry>
489
484
<listitem>
490
485
<para>
491
486
Never issue a password prompt. If the server requires password
492
- authentication and a password is not available by other means
487
+ authentication and a password is not available from other sources
493
488
such as a <filename>.pgpass</filename> file, the connection
494
489
attempt will fail. This option can be useful in batch jobs and
495
490
scripts where no user is present to enter a password.
@@ -509,13 +504,15 @@ EOF
509
504
<listitem>
510
505
<para>
511
506
Force <application>psql</application> to prompt for a
512
- password before connecting to a database.
507
+ password before connecting to a database, even if the password will
508
+ not be used.
513
509
</para>
514
510
515
511
<para>
516
- This option is never essential, since <application>psql</application>
517
- will automatically prompt for a password if the server demands
518
- password authentication. However, <application>psql</application>
512
+ If the server requires password authentication and a password is not
513
+ available from other sources such as a <filename>.pgpass</filename>
514
+ file, <application>psql</application> will prompt for a
515
+ password in any case. However, <application>psql</application>
519
516
will waste a connection attempt finding out that the server wants a
520
517
password. In some cases it is worth typing <option>-W</option> to avoid
521
518
the extra connection attempt.
0 commit comments