]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_waldump: Remove file-level global WalSegSz.
authorRobert Haas <rhaas@postgresql.org>
Tue, 27 Jan 2026 13:31:15 +0000 (08:31 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 27 Jan 2026 13:33:20 +0000 (08:33 -0500)
commit9a446d0256dc8f4afb4dba97734b46447c08d918
tree542bfa2add88ef01148a080685b72b7d0b77dbdf
parent851f6649cc18c4b482fa2b6afddb65b35d035370
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
src/bin/pg_waldump/pg_waldump.c