1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-09 06:21:09 +03:00

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
This commit is contained in:
Alvaro Herrera
2012-02-01 13:56:59 -03:00
parent 21238deea5
commit b2e431a4db
2 changed files with 31 additions and 1 deletions

View File

@@ -98,6 +98,15 @@ pg_archivecleanup: removing file "archive/00000001000000370000000E"
</listitem>
</varlistentry>
<varlistentry>
<term><option>-n</option></term>
<listitem>
<para>
Print the names of the files that would have been removed on <filename>stdout</> (performs a dry run).
</para>
</listitem>
</varlistentry>
</variablelist>
</para>