Re: pg_upgrade verbosity when redirecting output to log file - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_upgrade verbosity when redirecting output to log file
Date
Msg-id 2124630.1641795272@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_upgrade verbosity when redirecting output to log file  (Andres Freund <andres@anarazel.de>)
Responses Re: pg_upgrade verbosity when redirecting output to log file
List 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 by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: ICU for global collation
Next
From: Amit Kapila
Date:
Subject: Re: row filtering for logical replication