pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_walsummary: Fix --quiet to suppress limit block output
Date: Wed, 07 Oct 2026 06:02:31 +0000
Message-ID: <E1xEKjX-00000000eNg-3KWm@gemulon.postgresql.org> (raw)

pg_walsummary: Fix --quiet to suppress limit block output

Previously, pg_walsummary printed limit block lines even with --quiet
because the output was generated before checking the quiet flag.

Fix this by moving the output after the quiet check.

Backpatch to v17, where pg_walsummary was introduced.

Author: Koshi Shibagaki <shibagaki.koshi@fujitsu.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/TY5PR01MB18445D1AF87F64E9835BAD0B0FA962@TY5PR01MB18445.jpnprd01.prod.outlook.com
Backpatch-through: 17

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2a8ce0f684a4aa3da8f8c6f2d255048d545e96ff

Modified Files
--------------
src/bin/pg_walsummary/pg_walsummary.c | 12 ++++++------
src/bin/pg_walsummary/t/002_blocks.pl | 12 ++++++++++++
2 files changed, 18 insertions(+), 6 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1xEKjX-00000000eNg-3KWm@gemulon.postgresql.org>
Permalink:  ../E1xEKjX-00000000eNg-3KWm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xEKjX-00000000eNg-3KWm@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: pg_walsummary: Fix --quiet to suppress limit block output
  In-Reply-To: <E1xEKjX-00000000eNg-3KWm@gemulon.postgresql.org>
  References: <E1xEKjX-00000000eNg-3KWm@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox