postgrespro.git / summary / log / commit / refs

commit    3031440e9809bbf7cf279b85306df2e3b686539d
Author:   Robert Haas <rhaas@postgresql.org>
Date:     Fri Apr 03 15:58:58 2020 +0000

    pg_waldump: Don't call XLogDumpDisplayStats() if -q is specified.
    
    Commit ac44367efbef198c57a18b96dbc6a39191720994 introduced this
    problem.
    
    Report and fix by Fujii Masao.
    
    Discussion: http://postgr.es/m/d332b8f0-0c72-3cd6-6945-7a86a503662a@oss.nttdata.com


src/bin/pg_waldump/pg_waldump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_waldump/pg_waldump.c b/src/bin/pg_waldump/pg_waldump.c index 7c80b5288f..d7bd9ccac2 100644 --- a/src/bin/pg_waldump/pg_waldump.c +++ b/src/bin/pg_waldump/pg_waldump.c @@ -1098,7 +1098,7 @@ main(int argc, char **argv) break; } - if (config.stats == true) + if (config.stats == true && !config.quiet) XLogDumpDisplayStats(&config, &stats); if (errormsg) [parent: c12e43a2e0d4]