Re: PGCOLOR? (Re: pgsql: Unified logging system for command-lineprograms)

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: PGCOLOR? (Re: pgsql: Unified logging system for command-lineprograms)
Дата
Msg-id
daa1f509-b1a2-8fc3-4079-305470dfa7b7@2ndquadrant.com
Ответ на
Список
Дерево обсуждения
PGCOLOR? (Re: pgsql: Unified logging system for command-lineprograms) Christoph Berg <myon@debian.org>
Re: PGCOLOR? (Re: pgsql: Unified logging system for command-lineprograms) Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: PGCOLOR? (Re: pgsql: Unified logging system for command-lineprograms) Christoph Berg <myon@debian.org>
Re: PGCOLOR? (Re: pgsql: Unified logging system for command-line programs) Masahiko Sawada <sawada.mshk@gmail.com>
Re: PGCOLOR? (Re: pgsql: Unified logging system for command-lineprograms) Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: PGCOLOR? (Re: pgsql: Unified logging system for command-line programs) Tom Lane <tgl@sss.pgh.pa.us>
Re: PGCOLOR? (Re: pgsql: Unified logging system for command-line programs) Tom Lane <tgl@sss.pgh.pa.us>
On 2019-06-06 11:08, Masahiko Sawada wrote:
> On Tue, Apr 9, 2019 at 9:01 PM Christoph Berg  wrote:
>>
>> 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")
>>
> 
> I think the if we keep two variables user can set the same value to
> both GCC_COLORS and PG_COLORS. Rather I think it's a problem that
> there is no documentation of PG_COLORS. Thoughts?

It looks like there is documentation for PG_COLORS in the release notes
now, which seems like an odd place.  Suggestions for a better place?

And any more opinions for PG_COLORS vs PGCOLORS naming?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления
От: Etsuro Fujita
Дата:
От: Fujii Masao
Дата:
FAQ