mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-08 00:57:21 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/pg_waldump
Normal file
41
tldr/pg_waldump
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pg_waldump
|
||||
|
||||
> Display a human-readable rendering of the write-ahead log (WAL).
|
||||
> More information: <https://www.postgresql.org/docs/current/pgwaldump.html>.
|
||||
|
||||
- Basic invocation reading a WAL segment (or range):
|
||||
|
||||
`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]}}`
|
||||
|
||||
- Limit number of records shown:
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}} {{[-n|--limit]}} {{count}}`
|
||||
|
||||
- Quiet mode (suppress output except errors):
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}} {{[-q|--quiet]}}`
|
||||
|
||||
- Filter by resource manager:
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}} {{[-r|--rmgr]}} {{rmgr_name}}`
|
||||
Reference in New Issue
Block a user