pgsql: pg_archivecleanup: Refactor loop doing old segment removals - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: pg_archivecleanup: Refactor loop doing old segment removals
Date
Msg-id [email protected]
Whole thread Raw
List pgsql-committers
pg_archivecleanup: Refactor loop doing old segment removals

This commit refactors a bit the main loop of pg_archivecleanup that
handles the removal of old segments, reducing by one its level of
indentation.  This will help an incoming patch that adds a new option
related to the segment filtering logic.

Author: Atsushi Torikoshi
Reviewed-by: Kyotaro Horiguchi, Fujii Masao, Michael Paquier
Discussion: https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4a7556f77c44d295241d2432094b40156f69be1a

Modified Files
--------------
src/bin/pg_archivecleanup/pg_archivecleanup.c | 128 +++++++++++++-------------
1 file changed, 66 insertions(+), 62 deletions(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Doc: Update the logical replication restriction w.r.t Replica Id
Next
From: Michael Paquier
Date:
Subject: pgsql: pg_archivecleanup: Add --clean-backup-history