Dry Run mode for pg_archivecleanup

Started by Gabriele Bartoliniover 14 years ago2 messages
#1Gabriele Bartolini
gabriele.bartolini@2ndQuadrant.it
1 attachment(s)

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

Attachments:

0001-Add-dryrun-option-to-pg_archivecleanup.patchtext/plain; name=0001-Add-dryrun-option-to-pg_archivecleanup.patch; x-mac-creator=0; x-mac-type=0Download
#2Fujii Masao
masao.fujii@gmail.com
In reply to: Gabriele Bartolini (#1)
Re: Dry Run mode for pg_archivecleanup

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