Re: Allow pg_archivecleanup to remove backup history files

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Allow pg_archivecleanup to remove backup history files
Дата
Msg-id ZLdsv5FK9cKvyUvj@paquier.xyz
обсуждение исходный текст
Ответ на Re: Allow pg_archivecleanup to remove backup history files  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Allow pg_archivecleanup to remove backup history files  (torikoshia <torikoshia@oss.nttdata.com>)
Список pgsql-hackers
On Fri, Jun 30, 2023 at 03:48:43PM +0900, Michael Paquier wrote:
> I have begun cleaning up my board, and applied 0001 for the moment.

And a few weeks later..  I have come around this thread and applied
0002 and 0003.

The flow of 0002 was straight-forward.  My main issue was in 0003,
actually, where the TAP tests were kind of confusing as written:
- There was no cleanup of the files still present after a single
command check, which could easily mess up the tests.
- The --dry-run case was using the list of WAL files for the extension
pattern checks, hardcoding names based on the position of its array.
I have switched that to use a third list of files, instead.

The result looked OK and that can be extended easily for more
patterns or more commands, so applied 0003 after doing these
adjustments, coupled with a pgperltidy run, a pgperlcritic check and
an indentation.
--
Michael

Вложения

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

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: logicalrep_message_type throws an error
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: doc: clarify the limitation for logical replication when REPILICA IDENTITY is FULL