archive_cleanup_command
A configuration parameter which specifies a shell command to clean up redundant archived WAL files
archive_cleanup_command
is a configuration parameter which specifies a shell command to clean up redundant archived WAL files on a standby.
archive_cleanup_command
was added in PostgreSQL 9.0.
Default value
The default value for archive_cleanup_command
is: ''
(empty string).
Usage
archive_cleanup_command
is executed at every restartpoint.
Change history
- PostgreSQL 12
- PostgreSQL 9.0
- added as a
recovery.conf
parameter (initial commit de66effe asrestartpoint_command
, renamed toarchive_cleanup_command
in commit 56834fc7)
- added as a
References
- PostgreSQL documentation: archive_cleanup_command