agora inbox for pgsql-bugs@postgresql.org
help / color / mirror / Atom feedFrom: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: tanghy.fnst@cn.fujitsu.com
Subject: BUG #16108: Colorization to the output of command-line has unproperly behaviors at Windows platform
Date: Tue, 12 Nov 2019 08:29:10 +0000
Message-ID: <16108-134692e97146b7bc@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16108
Logged by: Haiying Tang
Email address: tanghy.fnst@cn.fujitsu.com
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: [01mpg_dump: [0m[01;31merror: [0mconnection
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
view thread (14+ messages) latest in thread
Message-ID: <16108-134692e97146b7bc@postgresql.org>
Permalink: ../16108-134692e97146b7bc@postgresql.org/
Also on: postgresql.org/message-id/16108-134692e97146b7bc@postgresql.org
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, tanghy.fnst@cn.fujitsu.com
Subject: Re: BUG #16108: Colorization to the output of command-line has unproperly behaviors at Windows platform
In-Reply-To: <16108-134692e97146b7bc@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox