Implement dry-run mode for pg_archivecleanup
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 1 Feb 2012 16:56:59 +0000 (13:56 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 1 Feb 2012 17:18:12 +0000 (14:18 -0300)
commitb2e431a4db81a735d1474c4d1565a20b835878c9
treece6c8589e56179be38882ead46541f0451045f17
parent21238deea50e194bfa1c844b01ffbd15ed56c01a
Implement dry-run mode for pg_archivecleanup

In dry-run mode, just the name of the file to be removed is printed to
stdout; this is so the user can easily plug it into another program
through a pipe.  If debug mode is also specified, a more verbose message
is printed to stderr.

Author: Gabriele Bartolini
Reviewer: Josh Kupershmidt
contrib/pg_archivecleanup/pg_archivecleanup.c
doc/src/sgml/pgarchivecleanup.sgml