Re: [GENERAL] WAL & ready files retained after turning off log shipping

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [GENERAL] WAL & ready files retained after turning off log shipping
Дата
Msg-id CAB7nPqTcABeFLiDcBKuwz1esa+bz6GuMa_tD+7jEXYZjaznnaw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] WAL & ready files retained after turning off log shipping  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Thu, Sep 7, 2017 at 11:08 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Manual cleanup shouldn't be very hard, fortunately.  Run pg_controldata
> to see where the last checkpoint is, and delete WAL files whose names
> indicate they are before that (but not the one including the checkpoint!).
> If you don't intend to do archiving any more, you can just flush all the
> .ready files (and .done if any) without much thought.

It would be less risky to do that as a two-time move:
- First change archive_command to /sbin/true and let all archives be
switched to .done.
- And then disable archive_mode.
--
Michael


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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: [GENERAL] column names query
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: [GENERAL] WAL & ready files retained after turning off logshipping