From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>, PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: WAL & ready files retained after turning off log shipping |
Date: | 2017-09-07 22:07:18 |
Message-ID: | CAB7nPqTcABeFLiDcBKuwz1esa+bz6GuMa_tD+7jEXYZjaznnaw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Sep 7, 2017 at 11:08 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Johnson | 2017-09-07 22:10:13 | Re: WAL & ready files retained after turning off log shipping |
Previous Message | John R Pierce | 2017-09-07 16:33:55 | Re: column names query |