Re: Peter Eisentraut 2019-04-01 <e1hb1d6-00051m...@gemulon.postgresql.org>
> - Some color in the messages, similar to gcc and clang.  Set
>   PG_COLOR=auto to try it out.  Some colors are predefined, but can be
>   customized by setting PG_COLORS.

Can we rename PG_COLOR to PGCOLOR? This is the only PG* environment
variable prefixed with the extra underscore, and remembering that will
be confusing. (Like pgbench should really be named pg_bench for
consistency.) Even if it's not a libpq variable, but that's an
implementation detail that users shouldn't have to worry about.

>From reindexdb(1):

NAME
       reindexdb - reindex a PostgreSQL database

ENVIRONMENT
       PGDATABASE
       PGHOST
       PGPORT
       PGUSER
           Default connection parameters

       PG_COLOR
           Specifies whether to use color in diagnostics messages. Possible 
values are always, auto, never.

Also, why doesn't this default to 'auto'? Lots of programs have moved
to using colors by default over the last years, including git and gcc.

Christoph


Reply via email to