diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-07-19 13:41:22 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-07-19 13:41:22 +0900 |
commit | 3f8c98d0b631882e3c513954df42891c1c9585c7 (patch) | |
tree | 675ac3b27bc610b9f2ddc1a1dde0386ccda04f19 /src/backend/utils/adt/jsonfuncs.c | |
parent | 4a7556f77c44d295241d2432094b40156f69be1a (diff) | |
download | postgresql-3f8c98d0b631882e3c513954df42891c1c9585c7.tar.gz postgresql-3f8c98d0b631882e3c513954df42891c1c9585c7.zip |
pg_archivecleanup: Add --clean-backup-history
By default, pg_archivecleanup does not remove backup history files.
These are just few bytes useful for debugging purposes, still keeping
them around can bloat an archive path history files mixed with the WAL
segments if the path has a long history.
This patch adds a new option to control if backup history files are
removed, depending on the oldest segment name to keep around.
While on it, the TAP tests are refactored so as these are now able to
handle lists of files. Each file has a flag to track if it should still
exist or not depending on the oldest segment defined with the command
run.
Author: Atsushi Torikoshi
Reviewed-by: Kyotaro Horiguchi, Fujii Masao, Michael Paquier
Discussion: https://postgr.es/m/d660ef741ce3d82f3b4283f1cafd576c@oss.nttdata.com
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions