Fix another buglet in archive_waldump.c.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 69c57466a7521ee146cfdde766713181d45a2d36
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2026-03-22T22:48:38Z
Fix another buglet in archive_waldump.c.

While re-reading 860359ea0, I noticed another problem: when
spilling to a temp file, it did not bother to check the result
of fclose().  This is bad since write errors (like ENOSPC)
may not be reported until close time.

Files

PathChange+/−
src/bin/pg_waldump/archive_waldump.c modified +3 −1