PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16108
PG Version12.0
OSWindows
Opened2019-11-12 08:29:10+00
Reported byHaiying Tang
StatusNew

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16108
Logged by:          Haiying Tang
Email address:      (redacted)
PostgreSQL version: 12.0
Operating system:   Windows
Description:        

Hello

I found the following release notes in PG12 is not working properly at
Windows.
> •Add colorization to the output of command-line utilities

Following the release note, I've set the the environment variable PG_COLOR
to auto, then I run pg_dump command with an incorrect passwd.
However, the command-line output is not colorized as the release notes
said.

Before  PG_COLOR=auto is set: pg_dump: error: connection to database
"tanghy.fnst" failed: FATAL:
After PG_COLOR=auto is set: pg_dump: error: connection
to database "tanghy.fnst" failed: FATAL

I think the colorization to the output of command-line is not supported at
Windows.
Maybe function "pg_logging_init" at source "src\common\logging.c" should add
a platform check.
Besides, the related release note of PG12 should add some description about
it.

Best Regards,
Tang

Messages

DateAuthorSubject
2019-11-12 08:29:10+00PG Bug reporting formBUG #16108: Colorization to the output of command-line has unproperly behaviors at Windows platform
2019-11-12 08:39:17+00Thomas MunroRe: BUG #16108: Colorization to the output of command-line has unproperly behaviors at Windows platform
2019-11-12 18:59:35+00=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?=Re: BUG #16108: Colorization to the output of command-line has unproperly behaviors at Windows platform
2019-11-15 04:23:01+00"Tang, Haiying"RE: BUG #16108: Colorization to the output of command-line has unproperly behaviors at Windows platform
2019-11-15 08:14:59+00=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?=Re: BUG #16108: Colorization to the output of command-line has unproperly behaviors at Windows platform