Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions pages/common/pg_waldump.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
# pg_waldump

> Display a human-readable rendering of the write-ahead log (WAL).
> Display a human-readable rendering of the write-ahead log (WAL) of a PostgreSQL database cluster.
> More information: <https://www.postgresql.org/docs/current/pgwaldump.html>.

- Basic invocation reading a WAL segment (or range):
- Display WAL records from a specific segment:

`pg_waldump {{start_segment}}`

- Display WAL records between two segments:

`pg_waldump {{start_segment}} {{end_segment}}`

- Specify the WAL file directory:

`pg_waldump {{start_segment}} {{end_segment}} {{[-p|--path]}} {{path}}`

- Start from a particular WAL location (LSN):

`pg_waldump {{start_segment}} {{end_segment}} {{[-s|--start]}} {{lsn}}`

- Stop at a particular WAL location (LSN):

`pg_waldump {{start_segment}} {{end_segment}} {{[-e|--end]}} {{lsn}}`

- Follow new WAL entries as they arrive:

`pg_waldump {{start_segment}} {{end_segment}} {{[-f|--follow]}}`
Expand All @@ -27,10 +23,14 @@

`pg_waldump {{start_segment}} {{end_segment}} {{[-n|--limit]}} {{count}}`

- Quiet mode (suppress output except errors):
- Display summary statistics instead of individual records:

`pg_waldump {{start_segment}} {{end_segment}} {{[-q|--quiet]}}`
`pg_waldump {{start_segment}} {{end_segment}} {{[-z|--stats]}}`

- Filter by resource manager:

`pg_waldump {{start_segment}} {{end_segment}} {{[-r|--rmgr]}} {{rmgr_name}}`

- Display help:

`pg_waldump {{[-?|--help]}}`