pg_waldump

displays WAL file contents in human-readable format

TLDR

Dump WAL file
$ pg_waldump [walfile]
Dump with record details
$ pg_waldump -r [record_type] [walfile]
Dump range
$ pg_waldump -s [start_lsn] -e [end_lsn] [walfile]

SYNOPSIS

pg_waldump [options] [startseg] [endseg]

DESCRIPTION

pg_waldump displays WAL file contents in human-readable format. Shows transaction details and operations. Useful for debugging and understanding WAL activity.

PARAMETERS

-p, --path dir

WAL directory.
-r, --rmgr name
Filter by resource manager.
-s, --start lsn
Start LSN.
-e, --end lsn
End LSN.
-n, --limit n
Limit records.

INSTALL

sudo dnf install postgresql17
sudo apk add postgresql17
sudo zypper install postgresql17

SEE ALSO

pg_walsummary(1), pg_receivewal(1)