- linkend="libpq-connstring"/> for more information.
+ argument on the command line. The dbname
+ can be a connection string.
+ If so, connection string parameters will override any conflicting
+ command line options.
Never issue a password prompt. If the server requires password
- authentication and a password is not available by other means
+ authentication and a password is not available from other sources
such as a .pgpass file, the connection
attempt will fail. This option can be useful in batch jobs and
scripts where no user is present to enter a password.
Force
psql to prompt for a
- password before connecting to a database.
+ password before connecting to a database, even if the password will
+ not be used.
- This option is never essential, since
psql
- will automatically prompt for a password if the server demands
- password authentication. However,
psql
+ If the server requires password authentication and a password is not
+ available from other sources such as a .pgpass
+ file,
psql will prompt for a
+ password in any case. However,
psql
will waste a connection attempt finding out that the server wants a
password. In some cases it is worth typing to avoid
the extra connection attempt.