Skip to content

Commit 58c4526

Browse files
authored
pg_resetwal: add page (#18836)
1 parent c49d4c7 commit 58c4526

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pages/common/pg_resetwal.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# pg_resetwal
2+
3+
> Reset the write-ahead log and other control information of a PostgreSQL database cluster.
4+
> More information: <https://www.postgresql.org/docs/current/app-pgresetwal.html>.
5+
6+
- Reset the WAL and control information for a specific data directory:
7+
8+
`pg_resetwal {{[-D|--pgdata]}} {{path/to/data}}`
9+
10+
- Perform a dry run:
11+
12+
`pg_resetwal {{[-D|--pgdata]}} {{path/to/data}} {{[-n|--dry-run]}}`
13+
14+
- Force the WAL and control information reset:
15+
16+
`pg_resetwal {{[-D|--pgdata]}} {{path/to/data}} {{[-f|--force]}}`
17+
18+
- Display help:
19+
20+
`pg_resetwal {{[-?|--help]}}`
21+
22+
- Display version:
23+
24+
`pg_resetwal {{[-V|--version]}}`

0 commit comments

Comments
 (0)