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-06-27 21:33:54
Message-ID: 4E08F742.5010101@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.

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
0001-Add-dryrun-option-to-pg_archivecleanup.patch text/plain 0 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2011-06-27 21:50:03 Re: pg_upgrade defaulting to port 25432
Previous Message Kohei KaiGai 2011-06-27 20:40:06 Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address