pg_upgrade: Don't print progress status when output is not a tty.
authorAndres Freund <andres@anarazel.de>
Mon, 21 Feb 2022 16:34:59 +0000 (08:34 -0800)
committerAndres Freund <andres@anarazel.de>
Mon, 21 Feb 2022 16:34:59 +0000 (08:34 -0800)
commit27b02e070fd1b6622b10937d9346b65ffacbc351
treeedc905db0910087219fac9b7cecb1455b791228e
parent3f649663a49d5bb815858d90a271bb532c58fd0e
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@anarazel.de>
Reviewed-By: Justin Pryzby <pryzby@telsasoft.com>
Reviewed-By: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CA+hUKGKjrV61ZVJ8OSag+3rKRmCZXPc03bDyWMqhXg3rdZ=fOw@mail.gmail.com
src/bin/pg_upgrade/dump.c
src/bin/pg_upgrade/option.c
src/bin/pg_upgrade/pg_upgrade.c
src/bin/pg_upgrade/pg_upgrade.h
src/bin/pg_upgrade/relfilenode.c
src/bin/pg_upgrade/util.c