On Tue, Nov 3, 2015 at 11:29 PM, Albe Laurenz <laurenz.a...@wien.gv.at> wrote:
> Michael Paquier wrote:
>>> So, as Albe posted pg_archivecleanup is only cleaning up the WAL files, not
>>> the auxiliary files. The WAL files would be the ones with no extension and a
>>> size of 16 MB(unless someone changed the compile settings).
>>
>> The docs mention that "all WAL files" preceding a given point are
>> removed, personally I understand that as "all 16MB-size segments shall
>> die", hence excluding backup and history files from the stack. But one
>> may understand that "WAL files" means everything in pg_xlog, so as
>> something that includes backup and history files. Perhaps we would
>> gain in clarity by saying "WAL file segments, including .partial
>> segments" in the docs, and not just "WAL files". Thoughts?
>
> It might help to add:
> "Timeline history files and backup history files are not deleted."

Something among those lines?
-- 
Michael
diff --git a/doc/src/sgml/ref/pgarchivecleanup.sgml b/doc/src/sgml/ref/pgarchivecleanup.sgml
index 60a7fc4..77ef886 100644
--- a/doc/src/sgml/ref/pgarchivecleanup.sgml
+++ b/doc/src/sgml/ref/pgarchivecleanup.sgml
@@ -80,6 +80,10 @@ pg_archivecleanup:  removing file "archive/00000001000000370000000E"
    <replaceable>archivelocation</> is a directory readable and writable by the
    server-owning user.
   </para>
+  <para>
+   WAL file segments and WAL file segments with <literal>.partial</literal>
+   are deleted, while timeline history files and backup history files are not.
+  </para>
  </refsect1>
 
  <refsect1>
-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to