Re: Allow pg_archivecleanup to remove backup history files
torikoshia <torikoshia@oss.nttdata.com>
From: torikoshia <torikoshia@oss.nttdata.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, Kyotaro
Horiguchi <horikyota.ntt@gmail.com>, pgsql-hackers@postgresql.org
Date: 2023-05-22T09:24:49Z
Lists: pgsql-hackers
Attachments
- v3-0001-Introduce-pg_archivecleanup-into-getopt_long.patch (text/x-diff) patch v3-0001
- v3-0002-Allow-pg_archivecleanup-to-remove-backup-history-.patch (text/x-diff) patch v3-0002
On 2023-05-15 15:22, Michael Paquier wrote: > On Mon, May 15, 2023 at 03:16:46PM +0900, torikoshia wrote: >> On 2023-05-15 09:18, Michael Paquier wrote: >>> How about plugging in some long options, and use something more >>> explicit like --clean-backup-history? >> >> Agreed. > > If you begin to implement that, it seems to me that this should be > shaped with a first separate patch that refactors the code to use > getopt_long(), and a second patch for the proposed feature that builds > on top of it. Thanks for your advice, attached patches. -- Regards, -- Atsushi Torikoshi NTT DATA CORPORATION
Commits
-
pg_archivecleanup: Add --clean-backup-history
- 3f8c98d0b631 17.0 landed
-
pg_archivecleanup: Refactor loop doing old segment removals
- 4a7556f77c44 17.0 landed
-
Introduce long options in pg_archivecleanup
- dd7c60f1935a 17.0 landed