24 lines
1.3 KiB
Plaintext
24 lines
1.3 KiB
Plaintext
pg_waldump decodes and displays PostgreSQL write-ahead logs for debugging.
|
|
|
|
Usage:
|
|
pg_waldump [OPTION]... [STARTSEG [ENDSEG]]
|
|
|
|
Options:
|
|
-b, --bkp-details output detailed information about backup blocks
|
|
-e, --end=RECPTR stop reading at WAL location RECPTR
|
|
-f, --follow keep retrying after reaching end of WAL
|
|
-n, --limit=N number of records to display
|
|
-p, --path=PATH directory in which to find log segment files or a
|
|
directory with a ./pg_wal that contains such files
|
|
(default: current directory, ./pg_wal, $PGDATA/pg_wal)
|
|
-r, --rmgr=RMGR only show records generated by resource manager RMGR;
|
|
use --rmgr=list to list valid resource manager names
|
|
-s, --start=RECPTR start reading at WAL location RECPTR
|
|
-t, --timeline=TLI timeline from which to read log records
|
|
(default: 1 or the value used in STARTSEG)
|
|
-V, --version output version information, then exit
|
|
-x, --xid=XID only show records with transaction ID XID
|
|
-z, --stats[=record] show statistics instead of records
|
|
(optionally, show per-record statistics)
|
|
-?, --help show this help, then exit
|