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 1hDpRG-0005Ca-BB for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Apr 2019 12:01:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hDpRF-0003cL-54 for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Apr 2019 12:01:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDpRE-0003cE-PA for pgsql-hackers@lists.postgresql.org; Tue, 09 Apr 2019 12:01:16 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDpRC-0001ub-BX for pgsql-hackers@lists.postgresql.org; Tue, 09 Apr 2019 12:01:15 +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 44dm8m6tDhz3F1R; Tue, 9 Apr 2019 14:01:12 +0200 (CEST) Date: Tue, 9 Apr 2019 14:01:12 +0200 From: Christoph Berg To: Peter Eisentraut Cc: pgsql-hackers@lists.postgresql.org Subject: Re: PGCOLOR? (Re: pgsql: Unified logging system for command-line programs) Message-ID: <20190409120112.GC1961@msg.df7cb.de> References: <20190409092221.GA1961@msg.df7cb.de> 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-09 > I'm okay with changing it. As you indicate, I chose the name so that it > doesn't look like a libpq variable. There are some other PG_ variables > throughout the code, but those appear to be mostly for internal use. > Also, there is GCC_COLORS, LS_COLORS, etc. But perhaps this wisdom will > be lost on users who just read the man page and get confused. ;-) Do we need two variables to control this? I was only looking at PG_COLOR, and noticed PG_COLORS only later. Keeping PG_COLORS aligned with {GCC,LS}_COLORS makes sense. How about removing PG_COLOR, and making "auto" the default? (Maybe we could still support "PG_COLORS=off") Christoph