Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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: 0001-Add-dryrun-option-to-pg_archivecleanup.patch
Description: text/plain (0 bytes)

Responses

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group