1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Allow pg_archivecleanup to strip optional file extensions.

Greg Smith and Jaime Casanova, reviewed by Alex Shulgin and myself.
e
This commit is contained in:
Robert Haas
2012-04-05 14:18:42 -04:00
parent b736aef2ec
commit bbc02243fc
2 changed files with 50 additions and 4 deletions

View File

@ -107,6 +107,21 @@ pg_archivecleanup: removing file "archive/00000001000000370000000E"
</listitem>
</varlistentry>
<varlistentry>
<term><option>-x</option> <replaceable>extension</></term>
<listitem>
<para>
When using the program as a standalone utility, provide an extension
that will be stripped from all file names before deciding if they
should be deleted. This is typically useful for cleaning up archives
that have been compressed during storage, and therefore have had an
extension added by the compression program. Note that the
<filename>.backup</> file name passed to the program should not
include the extension.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>