pg_waldump: Remove file-level global WalSegSz.

Robert Haas <rhaas@postgresql.org>

Commit: 9a446d0256dc8f4afb4dba97734b46447c08d918
Author: Robert Haas <rhaas@postgresql.org>
Date: 2026-01-27T13:33:20Z
pg_waldump: Remove file-level global WalSegSz.

It's better style to pass the value around to just the places that
need it. This makes it easier to determine whether the value is
always properly initialized before use.

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: http://postgr.es/m/CAAJ_b94+wObPn-z1VECipnSFhjMJ+R2cpTmKVYLjyQuVn+B5QA@mail.gmail.com

Files

PathChange+/−
src/bin/pg_waldump/pg_waldump.c modified +19 −18

Discussion