Supported Versions: Current (16) / 15 / 14 / 13
Development Versions: 17 / devel
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

N.1. When Color is Used #

To use colorized output, set the environment variable PG_COLOR as follows:

  1. If the value is always, then color is used.

  2. If the value is auto and the standard error stream is associated with a terminal device, then color is used.

  3. Otherwise, color is not used.