Re: pg_upgrade verbosity when redirecting output to log file

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_upgrade verbosity when redirecting output to log file
Дата
Msg-id 2124630.1641795272@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_upgrade verbosity when redirecting output to log file  (Andres Freund <andres@anarazel.de>)
Ответы Re: pg_upgrade verbosity when redirecting output to log file  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2022-01-09 20:28:40 -0800, Andres Freund wrote:
>> Turns out that it only happens when the output is not a tty. And I notice it
>> whenever I redirect the log output to a file, pipe, or such.

> Ah. More precisely, it happens when doing
>   make -s -Otarget -j32 check-world,
> but *not* when
>   make -s -Otarget -j32 -C src/bin/pg_upgrade check

Fun!  That seems to me to be a strong argument for not letting
the behavior vary depending on isatty().

I think I'd vote for just nuking that output altogether.
It seems of very dubious value.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: ICU for global collation
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: row filtering for logical replication