From f279891cb62ea1b1a361d0c4f17f04929aed5264 Mon Sep 17 00:00:00 2001 From: Alessandro Date: Fri, 17 Oct 2025 11:18:43 +0200 Subject: [PATCH 1/3] pg_resetwal: add page --- pages/common/pg_resetwal.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/pg_resetwal.md diff --git a/pages/common/pg_resetwal.md b/pages/common/pg_resetwal.md new file mode 100644 index 00000000000000..885a6fccdc1326 --- /dev/null +++ b/pages/common/pg_resetwal.md @@ -0,0 +1,24 @@ +# pg_resetwal + +> Reset the write-ahead log and other control information of a PostgreSQL database cluster. +> More information: . + +- Reset the WAL and control information for a specific data directory: + +`pg_resetwal {{[-D|--pgdata]}} {{path/to/data}}` + +- Perform a dry run: + +`pg_resetwal {{[-n|--dry-run]}} {{[-D|--pgdata]}} {{path/to/data}}` + +- Force the WAL and control information reset: + +`pg_resetwal {{[-f|--force]}} {{[-D|--pgdata]}} {{path/to/data}}` + +- Display help: + +`pg_resetwal {{[-?|--help]}}` + +- Display version: + +`pg_resetwal {{[-V|--version]}}` \ No newline at end of file From c141c17de6f07c80a5e511c2643d2452e9057e3a Mon Sep 17 00:00:00 2001 From: Alessandro Date: Fri, 17 Oct 2025 11:19:24 +0200 Subject: [PATCH 2/3] add empty line --- pages/common/pg_resetwal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/pg_resetwal.md b/pages/common/pg_resetwal.md index 885a6fccdc1326..637bac4a30eb19 100644 --- a/pages/common/pg_resetwal.md +++ b/pages/common/pg_resetwal.md @@ -21,4 +21,4 @@ - Display version: -`pg_resetwal {{[-V|--version]}}` \ No newline at end of file +`pg_resetwal {{[-V|--version]}}` From 730fe96272e0acfcfd29cb8a8558602c2f8d56d6 Mon Sep 17 00:00:00 2001 From: Alessandro Chitarrini <140112899+chitvs@users.noreply.github.com> Date: Fri, 17 Oct 2025 18:51:53 +0200 Subject: [PATCH 3/3] Update pages/common/pg_resetwal.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/pg_resetwal.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/pg_resetwal.md b/pages/common/pg_resetwal.md index 637bac4a30eb19..e3b24630bb21af 100644 --- a/pages/common/pg_resetwal.md +++ b/pages/common/pg_resetwal.md @@ -9,11 +9,11 @@ - Perform a dry run: -`pg_resetwal {{[-n|--dry-run]}} {{[-D|--pgdata]}} {{path/to/data}}` +`pg_resetwal {{[-D|--pgdata]}} {{path/to/data}} {{[-n|--dry-run]}}` - Force the WAL and control information reset: -`pg_resetwal {{[-f|--force]}} {{[-D|--pgdata]}} {{path/to/data}}` +`pg_resetwal {{[-D|--pgdata]}} {{path/to/data}} {{[-f|--force]}}` - Display help: