pg_resetwal
all
Reset the write-ahead log and other control information of a PostgreSQL database cluster.
More info →Options (5)
-D, --pgdatabooleanReset the WAL and control information for a specific data directory
Example:
pg_resetwal {{[-D|--pgdata]}} {{path/to/data}}-n, --dry-runbooleanPerform a dry run
Example:
pg_resetwal {{[-D|--pgdata]}} {{path/to/data}} {{[-n|--dry-run]}}-f, --forcebooleanForce the WAL and control information reset
Example:
pg_resetwal {{[-D|--pgdata]}} {{path/to/data}} {{[-f|--force]}}--helpbooleanDisplay help
Example:
pg_resetwal {{[-?|--help]}}-V, --versionbooleanDisplay version
Example:
pg_resetwal {{[-V|--version]}}Examples (5)
Reset the WAL and control information for a specific data directory
pg_resetwal [-D|--pgdata] path/to/dataPerform 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]made by @shridhargupta | data from tldr-pages