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 <[email protected]> Reviewed-by: Hayato Kuroda <[email protected]> Reviewed-by: Fujii Masao <[email protected]> Discussion: https://postgr.es/m/ty5pr01mb18445d1af87f64e9835bad0b0fa...@ty5pr01mb18445.jpnprd01.prod.outlook.com Backpatch-through: 17 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1370a7832a2ab7bda5625fd1f0448808b534cd50 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(-)
