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: 24 additions & 0 deletions pages/common/pg_resetwal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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]}}`