Re: pg_upgrade verbosity when redirecting output to log file

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org, Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: pg_upgrade verbosity when redirecting output to log file
Date: 2022-01-10 06:14:32
Message-ID: 2124630.1641795272@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)anarazel(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2022-01-10 06:37:25 Re: row filtering for logical replication
Previous Message Julien Rouhaud 2022-01-10 06:00:27 Re: ICU for global collation