Re: [GENERAL] Deleting unwanted wal files

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [GENERAL] Deleting unwanted wal files
Дата
Msg-id CAB7nPqTjn2ct2=rEV58Tyas6LAJ=u6UGUp0PLyT3vSgGB6NkdQ@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] Deleting unwanted wal files  (krish050591 <krish050591@gmail.com>)
Ответы Re: [GENERAL] Deleting unwanted wal files  (krishna chaitanya <krish050591@gmail.com>)
Список pgsql-general
On Thu, Aug 17, 2017 at 8:06 PM, krish050591 <krish050591@gmail.com> wrote:
> Hi, if i'm using pg_basebackup utility for taking my database backup and also
> enabled wal level archiving, how will i detect the unwanted wal files and
> how will it delete them ?

Have you heard of pg_archivecleanup? Documentation is here:
https://www.postgresql.org/docs/devel/static/pgarchivecleanup.html
If a single archive is not cross-used among multiple standbys, you
could use it with archive_cleanup_command is recovery.conf to remove
unneeded WAL segments.
--
Michael


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

Предыдущее
От: Fabiana Zioti
Дата:
Сообщение: Re: [GENERAL] Development of an extension for PostgreSQL and PostGIS
Следующее
От: krishna chaitanya
Дата:
Сообщение: Re: [GENERAL] Deleting unwanted wal files