Re: pg_waldump: support decoding of WAL inside tarfile - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: pg_waldump: support decoding of WAL inside tarfile
Date
Msg-id CAD5tBcLsYDz+Nzx8MryjxiKaN3fGKd4ZgXuN1Jn=CYxw9dh+AA@mail.gmail.com
Whole thread
In response to Re: pg_waldump: support decoding of WAL inside tarfile  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_waldump: support decoding of WAL inside tarfile
Re: pg_waldump: support decoding of WAL inside tarfile
List pgsql-hackers


On Sun, Mar 22, 2026 at 2:17 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
I wrote:
> ... We can make this function far simpler
> and more obviously correct if we just accept that we'll read a
> WAL file completely before spilling it.  See my proposed
> alternative to 0004, attached.

Actually, we can make that better yet by not expecting
get_archive_wal_entry to clean up after init_archive's
failure to free all irrelevant hashtable entries.
Better version attached.




Yeah, this looks good.  I know we also still need to do something about rmtree trying to remove files we haven't closed. But what we have so far in this set LGTM. If you want to push this I'm good, otherwise I'll look at it tomorrow or Tuesday.

cheers

andrew

pgsql-hackers by date:

Previous
From: Yamaguchi Atsuo
Date:
Subject: Add tab completion for SERVER and CONNECTION keywords in psql
Next
From: Tom Lane
Date:
Subject: Re: pg_waldump: support decoding of WAL inside tarfile