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

From Andres Freund
Subject Re: pg_upgrade verbosity when redirecting output to log file
Date
Msg-id 20220110043625.au7qn6jdp2deakah@alap3.anarazel.de
Whole thread Raw
In response to 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
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



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: pg_upgrade verbosity when redirecting output to log file
Next
From: Julien Rouhaud
Date:
Subject: Re: Multiple Query IDs for a rewritten parse tree