Re: pg_archivecleanup not deleting anything?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pg_archivecleanup not deleting anything?
Дата
Msg-id CAB7nPqQ+dwSFATw4hM2VbcF2T80S+Rp9Vi80K176qiZu2k6odA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_archivecleanup not deleting anything?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: pg_archivecleanup not deleting anything?  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Список pgsql-general
On Tue, Nov 3, 2015 at 1:33 AM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
> On 11/02/2015 08:17 AM, Paul Jungwirth wrote:
>>>
>>> Is there anything else beside *.backup files in the directory?
>>
>>
>> There were a few *.history files, and a few files with no extension,
>> like this: 00000006000000BE00000040.
>
>
> 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?
--
Michael


В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Deadlock detected after pg_repack receives SIGINT
Следующее
От: Albe Laurenz
Дата:
Сообщение: Re: pg_archivecleanup not deleting anything?