Skip to content
Merged
Changes from 3 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
34 changes: 15 additions & 19 deletions pages/common/pg_waldump.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,32 @@
# pg_waldump

> Display a human-readable rendering of the write-ahead log (WAL).
> Display a human-readable rendering of the write-ahead log 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}} {{end_segment}}`

- Specify the WAL file directory:
`pg_waldump {{start_segment}}`

`pg_waldump {{start_segment}} {{end_segment}} {{[-p|--path]}} {{path}}`
- Display WAL records between two segments:

- Start from a particular WAL location (LSN):

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

- Stop at a particular WAL location (LSN):
- Follow WAL in real-time:

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

- Follow new WAL entries as they arrive:
- Display records with full page images:

`pg_waldump {{start_segment}} {{end_segment}} {{[-f|--follow]}}`
`pg_waldump {{start_segment}} {{[-w|--fullpage]}}`

- Limit number of records shown:
- Display summary statistics instead of individual records:

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

- Quiet mode (suppress output except errors):
- Display help:

`pg_waldump {{start_segment}} {{end_segment}} {{[-q|--quiet]}}`
`pg_waldump {{[-?|--help]}}`

- Filter by resource manager:
- Display version:

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