Dry-run mode for pg_archivecleanup

From: Gabriele Bartolini <gabriele(dot)bartolini(at)2ndQuadrant(dot)it>
To: PgHacker <pgsql-hackers(at)postgresql(dot)org>
Subject: Dry-run mode for pg_archivecleanup
Date: 2011-12-11 14:52:03
Message-ID: 4EE4C393.4060302@2ndQuadrant.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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. I submit it to the CommitFest.

Thanks,
Gabriele

--
Gabriele Bartolini - 2ndQuadrant Italia
PostgreSQL Training, Services and Support
gabriele(dot)bartolini(at)2ndQuadrant(dot)it | www.2ndQuadrant.it

Attachment Content-Type Size
add-dry-run-option-pgarchivecleanup.patch text/plain 2.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2011-12-11 15:24:06 Re: Dry-run mode for pg_archivecleanup
Previous Message Kohei KaiGai 2011-12-11 08:18:29 Re: [v9.2] Fix Leaky View Problem