Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDmxX-0000qt-7N for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Apr 2019 09:22:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hDmxV-0008Vd-Sk for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Apr 2019 09:22:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDmxV-0008Uv-I9 for pgsql-hackers@lists.postgresql.org; Tue, 09 Apr 2019 09:22:25 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDmxT-0004f1-8k for pgsql-hackers@lists.postgresql.org; Tue, 09 Apr 2019 09:22:25 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 44dhdV1svgz3F1R; Tue, 9 Apr 2019 11:22:22 +0200 (CEST) Date: Tue, 9 Apr 2019 11:22:21 +0200 From: Christoph Berg To: Peter Eisentraut Cc: pgsql-hackers@lists.postgresql.org Subject: PGCOLOR? (Re: pgsql: Unified logging system for command-line programs) Message-ID: <20190409092221.GA1961@msg.df7cb.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Peter Eisentraut 2019-04-01 > - 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.