pgsql: Fix another buglet in archive_waldump.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix another buglet in archive_waldump.c.
Date: 2026-03-22 22:48:43
Message-ID: E1w4Rb8-000zk9-1Y@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/69c57466a7521ee146cfdde766713181d45a2d36

Modified Files
--------------
src/bin/pg_waldump/archive_waldump.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-03-23 00:05:37 pgsql: Add missing deflateEnd() for server-side gzip base backups
Previous Message Tom Lane 2026-03-22 22:24:49 pgsql: Remove nonfunctional tar file trailer size check.