diff options
author | Michael Paquier | 2020-03-09 01:53:22 +0000 |
---|---|---|
committer | Michael Paquier | 2020-03-09 01:53:22 +0000 |
commit | 5aaa584f819e2d8d2fb23cdf2174ce6e5628e1f5 (patch) | |
tree | a58e0e417530bf062aeab3514ba1ba1770abf6c9 | |
parent | 806eb92c018102da9514443ad19160c7b1841062 (diff) |
Doc: fix some description of environment variables with frontend tools
This addresses a couple of issues in the documentation:
- Description of PG_COLOR was missing for some tools (pg_archivecleanup
and pg_test_fsync), while the other descriptions had grammar mistakes.
- pgbench supports more environment variables: PGUSER, PGHOST and
PGPORT.
- vacuumlo, oid2name and pgbench support coloring (HEAD only)
Author: Michael Paquier
Reviewed-by: Fabien Coelho, Daniel Gustafsson, Juan José SantamarÃa
Flecha
Discussion: https://postgr.es/m/20200304075418.GJ2593@paquier.xyz
Backpatch-through: 12
26 files changed, 110 insertions, 42 deletions
diff --git a/doc/src/sgml/oid2name.sgml b/doc/src/sgml/oid2name.sgml index c7ebd61c6bf..dfe36827391 100644 --- a/doc/src/sgml/oid2name.sgml +++ b/doc/src/sgml/oid2name.sgml @@ -223,6 +223,13 @@ utilities, also uses the environment variables supported by <application>libpq</application> (see <xref linkend="libpq-envars"/>). </para> + + <para> + The environment variable <envar>PG_COLOR</envar> specifies whether to use + color in diagnostic messages. Possible values are + <literal>always</literal>, <literal>auto</literal> and + <literal>never</literal>. + </para> </refsect1> <refsect1> diff --git a/doc/src/sgml/ref/clusterdb.sgml b/doc/src/sgml/ref/clusterdb.sgml index d11ac2dc9c4..177856ca74d 100644 --- a/doc/src/sgml/ref/clusterdb.sgml +++ b/doc/src/sgml/ref/clusterdb.sgml @@ -279,8 +279,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/createdb.sgml b/doc/src/sgml/ref/createdb.sgml index 8fc8128bf9c..2fca26237e3 100644 --- a/doc/src/sgml/ref/createdb.sgml +++ b/doc/src/sgml/ref/createdb.sgml @@ -327,8 +327,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/createuser.sgml b/doc/src/sgml/ref/createuser.sgml index abe25f17d01..9d24df8b7a8 100644 --- a/doc/src/sgml/ref/createuser.sgml +++ b/doc/src/sgml/ref/createuser.sgml @@ -405,8 +405,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/dropdb.sgml b/doc/src/sgml/ref/dropdb.sgml index f79bbb9a85a..28b18bfcb0c 100644 --- a/doc/src/sgml/ref/dropdb.sgml +++ b/doc/src/sgml/ref/dropdb.sgml @@ -245,8 +245,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/dropuser.sgml b/doc/src/sgml/ref/dropuser.sgml index 72bb7e8535c..f9aab340d3b 100644 --- a/doc/src/sgml/ref/dropuser.sgml +++ b/doc/src/sgml/ref/dropuser.sgml @@ -225,8 +225,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/initdb.sgml b/doc/src/sgml/ref/initdb.sgml index da5c8f53075..a04a1801650 100644 --- a/doc/src/sgml/ref/initdb.sgml +++ b/doc/src/sgml/ref/initdb.sgml @@ -466,8 +466,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/pg_basebackup.sgml b/doc/src/sgml/ref/pg_basebackup.sgml index fc9ba2e8b00..29bf2f9b979 100644 --- a/doc/src/sgml/ref/pg_basebackup.sgml +++ b/doc/src/sgml/ref/pg_basebackup.sgml @@ -706,8 +706,8 @@ PostgreSQL documentation <para> The environment variable <envar>PG_COLOR</envar> specifies whether to use - color in diagnostics messages. Possible values are - <literal>always</literal>, <literal>auto</literal>, + color in diagnostic messages. Possible values are + <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </refsect1> diff --git a/doc/src/sgml/ref/pg_checksums.sgml b/doc/src/sgml/ref/pg_checksums.sgml index 162bafdb331..6baf9deaaea 100644 --- a/doc/src/sgml/ref/pg_checksums.sgml +++ b/doc/src/sgml/ref/pg_checksums.sgml @@ -191,8 +191,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/pg_controldata.sgml b/doc/src/sgml/ref/pg_controldata.sgml index abac59aa500..4aae8b193de 100644 --- a/doc/src/sgml/ref/pg_controldata.sgml +++ b/doc/src/sgml/ref/pg_controldata.sgml @@ -73,8 +73,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml index 4bcd4bdaefe..13bd320b313 100644 --- a/doc/src/sgml/ref/pg_dump.sgml +++ b/doc/src/sgml/ref/pg_dump.sgml @@ -1229,8 +1229,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/pg_dumpall.sgml b/doc/src/sgml/ref/pg_dumpall.sgml index 7268be9f3ef..f0859896c54 100644 --- a/doc/src/sgml/ref/pg_dumpall.sgml +++ b/doc/src/sgml/ref/pg_dumpall.sgml @@ -701,8 +701,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/pg_isready.sgml b/doc/src/sgml/ref/pg_isready.sgml index 68447b5093d..3d5b551b87f 100644 --- a/doc/src/sgml/ref/pg_isready.sgml +++ b/doc/src/sgml/ref/pg_isready.sgml @@ -167,8 +167,8 @@ PostgreSQL documentation <para> The environment variable <envar>PG_COLOR</envar> specifies whether to use - color in diagnostics messages. Possible values are - <literal>always</literal>, <literal>auto</literal>, + color in diagnostic messages. Possible values are + <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </refsect1> diff --git a/doc/src/sgml/ref/pg_receivewal.sgml b/doc/src/sgml/ref/pg_receivewal.sgml index 177e9211c08..febfc0ba135 100644 --- a/doc/src/sgml/ref/pg_receivewal.sgml +++ b/doc/src/sgml/ref/pg_receivewal.sgml @@ -420,8 +420,8 @@ PostgreSQL documentation <para> The environment variable <envar>PG_COLOR</envar> specifies whether to use - color in diagnostics messages. Possible values are - <literal>always</literal>, <literal>auto</literal>, + color in diagnostic messages. Possible values are + <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </refsect1> diff --git a/doc/src/sgml/ref/pg_recvlogical.sgml b/doc/src/sgml/ref/pg_recvlogical.sgml index 4c79f90414d..41508fdc1e5 100644 --- a/doc/src/sgml/ref/pg_recvlogical.sgml +++ b/doc/src/sgml/ref/pg_recvlogical.sgml @@ -400,8 +400,8 @@ PostgreSQL documentation <para> The environment variable <envar>PG_COLOR</envar> specifies whether to use - color in diagnostics messages. Possible values are - <literal>always</literal>, <literal>auto</literal>, + color in diagnostic messages. Possible values are + <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </refsect1> diff --git a/doc/src/sgml/ref/pg_resetwal.sgml b/doc/src/sgml/ref/pg_resetwal.sgml index 8a9e22d050f..3b6c32c8d32 100644 --- a/doc/src/sgml/ref/pg_resetwal.sgml +++ b/doc/src/sgml/ref/pg_resetwal.sgml @@ -328,8 +328,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/pg_restore.sgml b/doc/src/sgml/ref/pg_restore.sgml index c6013546a0e..e9a145ad6ea 100644 --- a/doc/src/sgml/ref/pg_restore.sgml +++ b/doc/src/sgml/ref/pg_restore.sgml @@ -827,8 +827,8 @@ <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/pg_rewind.sgml b/doc/src/sgml/ref/pg_rewind.sgml index 42d29edd4e9..f64d659522e 100644 --- a/doc/src/sgml/ref/pg_rewind.sgml +++ b/doc/src/sgml/ref/pg_rewind.sgml @@ -269,8 +269,8 @@ PostgreSQL documentation <para> The environment variable <envar>PG_COLOR</envar> specifies whether to use - color in diagnostics messages. Possible values are - <literal>always</literal>, <literal>auto</literal>, + color in diagnostic messages. Possible values are + <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </refsect1> diff --git a/doc/src/sgml/ref/pg_waldump.sgml b/doc/src/sgml/ref/pg_waldump.sgml index 329c10e4303..667093f0601 100644 --- a/doc/src/sgml/ref/pg_waldump.sgml +++ b/doc/src/sgml/ref/pg_waldump.sgml @@ -223,8 +223,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/pgarchivecleanup.sgml b/doc/src/sgml/ref/pgarchivecleanup.sgml index a3d3538b28a..84c2df572a6 100644 --- a/doc/src/sgml/ref/pgarchivecleanup.sgml +++ b/doc/src/sgml/ref/pgarchivecleanup.sgml @@ -148,6 +148,18 @@ pg_archivecleanup: removing file "archive/00000001000000370000000E" </refsect1> <refsect1> + <title>Environment</title> + + <para> + The environment variable <envar>PG_COLOR</envar> specifies whether to use + color in diagnostic messages. Possible values are + <literal>always</literal>, <literal>auto</literal> and + <literal>never</literal>. + </para> + </refsect1> + + + <refsect1> <title>Notes</title> <para> diff --git a/doc/src/sgml/ref/pgbench.sgml b/doc/src/sgml/ref/pgbench.sgml index 4c48a58ed27..41b3880c91f 100644 --- a/doc/src/sgml/ref/pgbench.sgml +++ b/doc/src/sgml/ref/pgbench.sgml @@ -884,6 +884,37 @@ pgbench <optional> <replaceable>options</replaceable> </optional> <replaceable>d </refsect1> <refsect1> + <title>Environment</title> + + <variablelist> + <varlistentry> + <term><envar>PGHOST</envar></term> + <term><envar>PGPORT</envar></term> + <term><envar>PGUSER</envar></term> + + <listitem> + <para> + Default connection parameters. + </para> + </listitem> + </varlistentry> + </variablelist> + + <para> + This utility, like most other <productname>PostgreSQL</productname> utilities, + uses the environment variables supported by <application>libpq</application> + (see <xref linkend="libpq-envars"/>). + </para> + + <para> + The environment variable <envar>PG_COLOR</envar> specifies whether to use + color in diagnostic messages. Possible values are + <literal>always</literal>, <literal>auto</literal> and + <literal>never</literal>. + </para> + </refsect1> + + <refsect1> <title>Notes</title> <refsect2> diff --git a/doc/src/sgml/ref/pgtestfsync.sgml b/doc/src/sgml/ref/pgtestfsync.sgml index 501157cb369..c6aa5673f14 100644 --- a/doc/src/sgml/ref/pgtestfsync.sgml +++ b/doc/src/sgml/ref/pgtestfsync.sgml @@ -104,6 +104,17 @@ </refsect1> <refsect1> + <title>Environment</title> + + <para> + The environment variable <envar>PG_COLOR</envar> specifies whether to use + color in diagnostic messages. Possible values are + <literal>always</literal>, <literal>auto</literal> and + <literal>never</literal>. + </para> + </refsect1> + + <refsect1> <title>See Also</title> <simplelist type="inline"> diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 67ecec27cf9..402c4b1b266 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -4501,8 +4501,8 @@ $endif <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/reindexdb.sgml b/doc/src/sgml/ref/reindexdb.sgml index 0128118cc7a..f6c3d9538bb 100644 --- a/doc/src/sgml/ref/reindexdb.sgml +++ b/doc/src/sgml/ref/reindexdb.sgml @@ -380,8 +380,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/ref/vacuumdb.sgml b/doc/src/sgml/ref/vacuumdb.sgml index cf7f77ba30a..fd1dc140aba 100644 --- a/doc/src/sgml/ref/vacuumdb.sgml +++ b/doc/src/sgml/ref/vacuumdb.sgml @@ -474,8 +474,8 @@ PostgreSQL documentation <term><envar>PG_COLOR</envar></term> <listitem> <para> - Specifies whether to use color in diagnostics messages. Possible values - are <literal>always</literal>, <literal>auto</literal>, + Specifies whether to use color in diagnostic messages. Possible values + are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. </para> </listitem> diff --git a/doc/src/sgml/vacuumlo.sgml b/doc/src/sgml/vacuumlo.sgml index 0b57a77af41..26b764d54b7 100644 --- a/doc/src/sgml/vacuumlo.sgml +++ b/doc/src/sgml/vacuumlo.sgml @@ -196,6 +196,13 @@ also uses the environment variables supported by <application>libpq</application> (see <xref linkend="libpq-envars"/>). </para> + + <para> + The environment variable <envar>PG_COLOR</envar> specifies whether to use + color in diagnostic messages. Possible values are + <literal>always</literal>, <literal>auto</literal> and + <literal>never</literal>. + </para> </refsect1> <refsect1> |