Dry Run mode for pg_archivecleanup

Gabriele Bartolini <gabriele.bartolini@2ndquadrant.it>

From: Gabriele Bartolini <gabriele.bartolini@2ndQuadrant.it>
To: PgHacker <pgsql-hackers@postgresql.org>
Date: 2011-06-27T21:33:54Z
Lists: pgsql-hackers

Attachments

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