mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add a -w/--no-password option that prevents all password prompts to all
programs that have a -W/--password option. In passing, remove the ancient PSQL_ALWAYS_GET_PASSWORDS compile option.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/clusterdb.sgml,v 1.24 2008/11/24 08:46:03 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/clusterdb.sgml,v 1.25 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -171,6 +171,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</></term>
|
||||
<term><option>--password</></term>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/createdb.sgml,v 1.48 2008/11/10 16:25:41 alvherre Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/createdb.sgml,v 1.49 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -217,6 +217,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</></term>
|
||||
<term><option>--password</></term>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/createlang.sgml,v 1.42 2007/12/11 19:57:32 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/createlang.sgml,v 1.43 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -139,6 +139,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</></term>
|
||||
<term><option>--password</></term>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/createuser.sgml,v 1.51 2007/12/11 19:57:32 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/createuser.sgml,v 1.52 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -290,6 +290,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</></term>
|
||||
<term><option>--password</></term>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/dropdb.sgml,v 1.34 2007/12/11 19:57:32 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/dropdb.sgml,v 1.35 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -128,6 +128,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</></term>
|
||||
<term><option>--password</></term>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/droplang.sgml,v 1.31 2007/12/11 19:57:32 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/droplang.sgml,v 1.32 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -147,6 +147,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</></term>
|
||||
<term><option>--password</></term>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.39 2007/12/11 19:57:32 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.40 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -130,6 +130,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</></term>
|
||||
<term><option>--password</></term>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.110 2009/02/17 15:41:50 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.111 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -678,6 +678,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</option></term>
|
||||
<term><option>--password</option></term>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.76 2009/02/17 15:41:50 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.77 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -391,6 +391,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</option></term>
|
||||
<term><option>--password</option></term>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.79 2009/02/07 14:31:30 momjian Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.80 2009/02/26 16:02:37 petere Exp $ -->
|
||||
|
||||
<refentry id="APP-PGRESTORE">
|
||||
<refmeta>
|
||||
@ -510,6 +510,21 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</option></term>
|
||||
<term><option>--password</option></term>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.219 2009/02/09 14:09:56 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.220 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -401,6 +401,26 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires password
|
||||
authentication and a password is not available by other means
|
||||
such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Note that this option will remain set for the entire session,
|
||||
and so it affects uses of the meta-command
|
||||
<command>\connect</command> as well as the initial connection attempt.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</></term>
|
||||
<term><option>--password</></term>
|
||||
|
@ -181,6 +181,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</></term>
|
||||
<term><option>--password</></term>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/vacuumdb.sgml,v 1.43 2009/02/18 12:11:55 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/vacuumdb.sgml,v 1.44 2009/02/26 16:02:37 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -216,6 +216,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires
|
||||
password authentication and a password is not available by
|
||||
other means such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</></term>
|
||||
<term><option>--password</></term>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/vacuumlo.sgml,v 1.3 2007/12/11 19:57:32 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/vacuumlo.sgml,v 1.4 2009/02/26 16:02:37 petere Exp $ -->
|
||||
|
||||
<sect1 id="vacuumlo">
|
||||
<title>vacuumlo</title>
|
||||
@ -56,6 +56,20 @@ vacuumlo [options] database [database2 ... databaseN]
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</></term>
|
||||
<term><option>--no-password</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Never issue a password prompt. If the server requires password
|
||||
authentication and a password is not available by other means
|
||||
such as a <filename>.pgpass</filename> 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.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-W</option></term>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user