Thread: Dry Run mode for pg_archivecleanup

Dry Run mode for pg_archivecleanup

From
Gabriele Bartolini
Date:
Hi guys,

    I have added the '-n' option to pg_archivecleanup which performs a
dry-run and outputs the names of the files to be removed to stdout
(making possible to pass the list via pipe to another process). Please
find attached the small patch.

Thanks,
Gabriele

--
  Gabriele Bartolini - 2ndQuadrant Italia
  PostgreSQL Training, Services and Support
  gabriele.bartolini@2ndQuadrant.it | www.2ndQuadrant.it


Attachment

Re: Dry Run mode for pg_archivecleanup

From
Fujii Masao
Date:
On Tue, Jun 28, 2011 at 6:33 AM, Gabriele Bartolini
<gabriele.bartolini@2ndquadrant.it> wrote:
>   I have added the '-n' option to pg_archivecleanup which performs a dry-run
> and outputs the names of the files to be removed to stdout (making possible
> to pass the list via pipe to another process). Please find attached the
> small patch.

Please add the patch into the next CommitFest.
https://commitfest.postgresql.org/action/commitfest_view?id=11

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center