mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-22 23:51:27 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/pg_resetwal
Normal file
29
tldr/pg_resetwal
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pg_resetwal
|
||||
|
||||
> Reset the write-ahead log and other control information of a PostgreSQL database cluster.
|
||||
> More information: <https://www.postgresql.org/docs/current/app-pgresetwal.html>.
|
||||
|
||||
- Reset the WAL and control information for a specific data directory:
|
||||
|
||||
`pg_resetwal {{[-D|--pgdata]}} {{path/to/data}}`
|
||||
|
||||
- Perform a dry run:
|
||||
|
||||
`pg_resetwal {{[-D|--pgdata]}} {{path/to/data}} {{[-n|--dry-run]}}`
|
||||
|
||||
- Force the WAL and control information reset:
|
||||
|
||||
`pg_resetwal {{[-D|--pgdata]}} {{path/to/data}} {{[-f|--force]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pg_resetwal {{[-?|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`pg_resetwal {{[-V|--version]}}`
|
||||
Reference in New Issue
Block a user