pgsql: pg_upgrade: Don't print progress status when output is not a tty

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_upgrade: Don't print progress status when output is not a tty
Date: 2022-02-21 16:35:27
Message-ID: E1nMBeq-0000bv-7E@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_upgrade: Don't print progress status when output is not a tty.

Until this change pg_upgrade with output redirected to a file / pipe would end
up printing all files in the cluster. This has made check-world output
exceedingly verbose.

Author: Andres Freund <andres(at)anarazel(dot)de>
Reviewed-By: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Reviewed-By: Daniel Gustafsson <daniel(at)yesql(dot)se>
Discussion: https://postgr.es/m/CA+hUKGKjrV61ZVJ8OSag+3rKRmCZXPc03bDyWMqhXg3rdZ=fOw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/27b02e070fd1b6622b10937d9346b65ffacbc351

Modified Files
--------------
src/bin/pg_upgrade/dump.c | 2 +-
src/bin/pg_upgrade/option.c | 2 ++
src/bin/pg_upgrade/pg_upgrade.c | 2 +-
src/bin/pg_upgrade/pg_upgrade.h | 2 ++
src/bin/pg_upgrade/relfilenode.c | 6 ++--
src/bin/pg_upgrade/util.c | 61 ++++++++++++++++++++++++++++++++--------
6 files changed, 59 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-02-21 18:35:29 pgsql: Fix temporary object cleanup failing due to toast access without
Previous Message Peter Eisentraut 2022-02-21 10:30:51 pgsql: pgcrypto: Remove unused error code