Re: pg_upgrade verbosity when redirecting output to log file

From: Andres Freund <andres(at)anarazel(dot)de>
To: 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 04:36:25
Message-ID: 20220110043625.au7qn6jdp2deakah@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

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

because when there's only one target the subprocess ends up with the
FDs make is invoked with, but when there's concurrency -Otarget causes
stdin/out to be temporary files. Leading to the endless output "Copying user
relation files" output when doing check-world...

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2022-01-10 04:51:55 Re: Multiple Query IDs for a rewritten parse tree
Previous Message Andres Freund 2022-01-10 04:28:40 pg_upgrade verbosity when redirecting output to log file