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

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: [GENERAL] WAL & ready files retained after turning off logshipping
Дата
Msg-id 180b106d-e365-ea2f-ede0-e1169e4511ae@cox.net
обсуждение исходный текст
Ответ на [GENERAL] WAL & ready files retained after turning off log shipping  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-general
On 09/07/2017 05:07 PM, Michael Paquier wrote:
> 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.

Interesting.  Thanks.

--
World Peace Through Nuclear Pacification



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [GENERAL] WAL & ready files retained after turning off log shipping
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: [GENERAL] Performance with high correlation in group by on PK