Re: pg_xlog - Mailing list pgsql-admin

From Joshua D. Drake
Subject Re: pg_xlog
Date
Msg-id 1265927077.28400.9.camel@jd-desktop.iso-8859-1.charter.com
Whole thread Raw
In response to pg_xlog  (Albert Shih <Albert.Shih@obspm.fr>)
List pgsql-admin
On Thu, 2010-02-11 at 23:09 +0100, Albert Shih wrote:
> Hi all
>
> How can I clean up the pg_xlog directory ?
>
> I've 710 go of those file.
>
> I've archive_mode on but not in the pg_xlog directory
> I've something like
>
> archive_mode = on               # allows archiving to be done
> archive_command = 'cp -i %p /databases/Archives/WAL/%f </dev/null'
>
> so can I just do
>
>     postgresql stop
>     rm f pg_xlog/*

No.

>     postgresql start
>
> Regards.

I strongly suggest using something like walmgr or pitrtools to manage
this. Walmgr is part of skytools, pitrtools can be found here:

https://projects.commandprompt.com/public/pitrtools

Joshua D. Drake


--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
Respect is earned, not gained through arbitrary and repetitive use or Mr. or Sir.


pgsql-admin by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: How to manage WAL
Next
From: Renato Oliveira
Date:
Subject: PG_DUMP backup