From 1ebff9ba81afbb885d8c34d7e4e975f5cdbe9a4a Mon Sep 17 00:00:00 2001
From: Tom Lane
Date: Tue, 11 Dec 2007 19:57:32 +0000
Subject: Make documentation of -W options more accurate and uniform.
---
doc/src/sgml/ref/clusterdb.sgml | 15 +++++++++++++--
doc/src/sgml/ref/createdb.sgml | 17 ++++++++++++++---
doc/src/sgml/ref/createlang.sgml | 15 +++++++++++++--
doc/src/sgml/ref/createuser.sgml | 15 +++++++++++++--
doc/src/sgml/ref/dropdb.sgml | 17 ++++++++++++++---
doc/src/sgml/ref/droplang.sgml | 17 ++++++++++++++---
doc/src/sgml/ref/dropuser.sgml | 18 ++++++++++++++----
doc/src/sgml/ref/pg_dump.sgml | 18 ++++++++++++++----
doc/src/sgml/ref/pg_dumpall.sgml | 26 +++++++++++++++++++++-----
doc/src/sgml/ref/pg_restore.sgml | 18 ++++++++++++++----
doc/src/sgml/ref/psql-ref.sgml | 25 ++++++++++++-------------
doc/src/sgml/ref/reindexdb.sgml | 13 ++++++++++++-
doc/src/sgml/ref/vacuumdb.sgml | 17 ++++++++++++++---
doc/src/sgml/vacuumlo.sgml | 27 ++++++++++++++++++++-------
14 files changed, 202 insertions(+), 56 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/ref/clusterdb.sgml b/doc/src/sgml/ref/clusterdb.sgml
index 15caa1affa3..2990b2c8af2 100644
--- a/doc/src/sgml/ref/clusterdb.sgml
+++ b/doc/src/sgml/ref/clusterdb.sgml
@@ -1,5 +1,5 @@
@@ -164,7 +164,18 @@ PostgreSQL documentation
- Force password prompt.
+ Force clusterdb to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ clusterdb will automatically prompt
+ for a password if the server demands password authentication.
+ However, clusterdb will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/ref/createdb.sgml b/doc/src/sgml/ref/createdb.sgml
index 3b12e94f793..c75042c9b74 100644
--- a/doc/src/sgml/ref/createdb.sgml
+++ b/doc/src/sgml/ref/createdb.sgml
@@ -1,5 +1,5 @@
@@ -183,7 +183,7 @@ PostgreSQL documentation
- User name to connect as
+ User name to connect as.
@@ -193,7 +193,18 @@ PostgreSQL documentation
- Force password prompt.
+ Force createdb to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ createdb will automatically prompt
+ for a password if the server demands password authentication.
+ However, createdb will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/ref/createlang.sgml b/doc/src/sgml/ref/createlang.sgml
index 9441eef1de0..8383c66a8f9 100644
--- a/doc/src/sgml/ref/createlang.sgml
+++ b/doc/src/sgml/ref/createlang.sgml
@@ -1,5 +1,5 @@
@@ -144,7 +144,18 @@ PostgreSQL documentation
- Force password prompt.
+ Force createlang to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ createlang will automatically prompt
+ for a password if the server demands password authentication.
+ However, createlang will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/ref/createuser.sgml b/doc/src/sgml/ref/createuser.sgml
index b002593a237..95283e6775a 100644
--- a/doc/src/sgml/ref/createuser.sgml
+++ b/doc/src/sgml/ref/createuser.sgml
@@ -1,5 +1,5 @@
@@ -295,9 +295,20 @@ PostgreSQL documentation
- Force password prompt (to connect to the server, not for the
+ Force createuser to prompt for a
+ password (for connecting to the server, not for the
password of the new user).
+
+
+ This option is never essential, since
+ createuser will automatically prompt
+ for a password if the server demands password authentication.
+ However, createuser will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/ref/dropdb.sgml b/doc/src/sgml/ref/dropdb.sgml
index b60c7a82522..daf01287fb7 100644
--- a/doc/src/sgml/ref/dropdb.sgml
+++ b/doc/src/sgml/ref/dropdb.sgml
@@ -1,5 +1,5 @@
@@ -123,7 +123,7 @@ PostgreSQL documentation
- User name to connect as
+ User name to connect as.
@@ -133,7 +133,18 @@ PostgreSQL documentation
- Force password prompt.
+ Force dropdb to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ dropdb will automatically prompt
+ for a password if the server demands password authentication.
+ However, dropdb will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/ref/droplang.sgml b/doc/src/sgml/ref/droplang.sgml
index c284476c2ae..ee334e13e5e 100644
--- a/doc/src/sgml/ref/droplang.sgml
+++ b/doc/src/sgml/ref/droplang.sgml
@@ -1,5 +1,5 @@
@@ -142,7 +142,7 @@ PostgreSQL documentation
- User name to connect as
+ User name to connect as.
@@ -152,7 +152,18 @@ PostgreSQL documentation
- Force password prompt.
+ Force droplang to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ droplang will automatically prompt
+ for a password if the server demands password authentication.
+ However, droplang will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/ref/dropuser.sgml b/doc/src/sgml/ref/dropuser.sgml
index a1d560009e3..af57135f120 100644
--- a/doc/src/sgml/ref/dropuser.sgml
+++ b/doc/src/sgml/ref/dropuser.sgml
@@ -1,5 +1,5 @@
@@ -125,7 +125,7 @@ PostgreSQL documentation
- User name to connect as (not the user name to drop)
+ User name to connect as (not the user name to drop).
@@ -135,8 +135,18 @@ PostgreSQL documentation
- Force password prompt (to connect to the server, not for the
- password of the user to be dropped).
+ Force dropuser to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ dropuser will automatically prompt
+ for a password if the server demands password authentication.
+ However, dropuser will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml
index 6bb1cf4a476..fd0d56d8c0e 100644
--- a/doc/src/sgml/ref/pg_dump.sgml
+++ b/doc/src/sgml/ref/pg_dump.sgml
@@ -1,5 +1,5 @@
@@ -647,7 +647,7 @@ PostgreSQL documentation
- Connect as the given user.
+ User name to connect as.
@@ -657,8 +657,18 @@ PostgreSQL documentation
- Force a password prompt. This should happen automatically if
- the server requires password authentication.
+ Force pg_dump to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ pg_dump will automatically prompt
+ for a password if the server demands password authentication.
+ However, pg_dump will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/ref/pg_dumpall.sgml b/doc/src/sgml/ref/pg_dumpall.sgml
index 0d944278c44..a697cdbb911 100644
--- a/doc/src/sgml/ref/pg_dumpall.sgml
+++ b/doc/src/sgml/ref/pg_dumpall.sgml
@@ -1,5 +1,5 @@
@@ -59,7 +59,7 @@ PostgreSQL documentation
pg_dumpall needs to connect several
times to the PostgreSQL server (once per
- database). If you use password authentication it is likely to ask for
+ database). If you use password authentication it will ask for
a password each time. It is convenient to have a
~/.pgpass> file in such cases. See for more information.
@@ -367,7 +367,7 @@ PostgreSQL documentation
--username=username
- Connect as the given user.
+ User name to connect as.
@@ -377,8 +377,24 @@ PostgreSQL documentation
--password
- Force a password prompt. This should happen automatically if
- the server requires password authentication.
+ Force pg_dumpall to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ pg_dumpall will automatically prompt
+ for a password if the server demands password authentication.
+ However, pg_dumpall will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
+
+
+ Note that the password prompt will occur again for each database
+ to be dumped. Usually, it's better to set up a
+ ~/.pgpass> file than to rely on manual password entry.
diff --git a/doc/src/sgml/ref/pg_restore.sgml b/doc/src/sgml/ref/pg_restore.sgml
index a311affc3c3..17a99e5395e 100644
--- a/doc/src/sgml/ref/pg_restore.sgml
+++ b/doc/src/sgml/ref/pg_restore.sgml
@@ -1,4 +1,4 @@
-
+
@@ -458,7 +458,7 @@
- Connect as the given user.
+ User name to connect as.
@@ -468,8 +468,18 @@
- Force a password prompt. This should happen automatically if
- the server requires password authentication.
+ Force pg_restore to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ pg_restore will automatically prompt
+ for a password if the server demands password authentication.
+ However, pg_restore will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 63c9c4303cb..40a02812fe1 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
@@ -406,25 +406,24 @@ PostgreSQL documentation
- Forces psql to prompt for a
- password before connecting to a database.
+ Force psql to prompt for a
+ password before connecting to a database.
- psql should automatically prompt for a
- password whenever the server requests password authentication.
- However, currently password request detection is not totally
- reliable, hence this option to force a prompt. If no password
- prompt is issued and the server requires password authentication,
- the connection attempt will fail.
+ This option is never essential, since psql
+ will automatically prompt for a password if the server demands
+ password authentication. However, psql
+ will waste a connection attempt finding out that the server wants a
+ password. In some cases it is worth typing
- This option will remain set for the entire session, even if you
- change the database connection with the meta-command
- \connect.
+ Note that this option will remain set for the entire session,
+ and so it affects uses of the meta-command
+ \connect as well as the initial connection attempt.
-
diff --git a/doc/src/sgml/ref/reindexdb.sgml b/doc/src/sgml/ref/reindexdb.sgml
index e4469bb12ef..259b1708609 100644
--- a/doc/src/sgml/ref/reindexdb.sgml
+++ b/doc/src/sgml/ref/reindexdb.sgml
@@ -186,7 +186,18 @@ PostgreSQL documentation
- Force password prompt.
+ Force reindexdb to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ reindexdb will automatically prompt
+ for a password if the server demands password authentication.
+ However, reindexdb will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/ref/vacuumdb.sgml b/doc/src/sgml/ref/vacuumdb.sgml
index 87c34cee4b2..1e915eed5d0 100644
--- a/doc/src/sgml/ref/vacuumdb.sgml
+++ b/doc/src/sgml/ref/vacuumdb.sgml
@@ -1,5 +1,5 @@
@@ -199,7 +199,7 @@ PostgreSQL documentation
- User name to connect as
+ User name to connect as.
@@ -209,7 +209,18 @@ PostgreSQL documentation
- Force password prompt.
+ Force vacuumdb to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ vacuumdb will automatically prompt
+ for a password if the server demands password authentication.
+ However, vacuumdb will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing
diff --git a/doc/src/sgml/vacuumlo.sgml b/doc/src/sgml/vacuumlo.sgml
index ab4c60551ff..4152d3f59a6 100644
--- a/doc/src/sgml/vacuumlo.sgml
+++ b/doc/src/sgml/vacuumlo.sgml
@@ -1,4 +1,4 @@
-
+
vacuumlo
@@ -38,42 +38,55 @@ vacuumlo [options] database [database2 ... databaseN]
- Write a lot of progress messages
+ Write a lot of progress messages.
- Don't remove anything, just show what would be done
+ Don't remove anything, just show what would be done.username>
- Username to connect as
+ Username to connect as.
- Force prompt for password (generally useless)
+
+ Force vacuumlo to prompt for a
+ password before connecting to a database.
+
+
+
+ This option is never essential, since
+ vacuumlo will automatically prompt
+ for a password if the server demands password authentication.
+ However, vacuumlo will waste a
+ connection attempt finding out that the server wants a password.
+ In some cases it is worth typing hostname>
- Database server's host
+ Database server's host.port>
- Database server's port
+ Database server's port.
--
cgit v1.2.3