pgsql: pg_archivecleanup: Add --clean-backup-history

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: pg_archivecleanup: Add --clean-backup-history
Дата
Msg-id E1qLz1w-000DQ8-MY@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3f8c98d0b631882e3c513954df42891c1c9585c7

Modified Files
--------------
doc/src/sgml/ref/pgarchivecleanup.sgml             |  12 +++
src/bin/pg_archivecleanup/pg_archivecleanup.c      |  23 ++--
.../pg_archivecleanup/t/010_pg_archivecleanup.pl   | 118 +++++++++++++++------
3 files changed, 115 insertions(+), 38 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: pg_archivecleanup: Refactor loop doing old segment removals
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: improve description of IN and row-constructor comparisons.