Re: pg_archivecleanup not deleting anything?

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Paul Jungwirth <pj(at)illuminatedcomputing(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_archivecleanup not deleting anything?
Date: 2015-11-04 06:32:32
Message-ID: CAB7nPqS9pQ4U6WRQ-rhF6381-xeHteCHxoRgGn35LCd2UFU5eg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Nov 3, 2015 at 11:29 PM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)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

Attachment Content-Type Size
20151104_archivecleanup_doc.patch text/x-patch 623 bytes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Leonardo M. Ramé 2015-11-04 09:00:14 Re: MinGW-W64 compile error
Previous Message Sami Pietilä 2015-11-04 06:32:20 Re: How to search a string inside a json structure