Re: pg_xlog

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Albert Shih <Albert(dot)Shih(at)obspm(dot)fr>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_xlog
Date: 2010-02-11 22:24:37
Message-ID: 1265927077.28400.9.camel@jd-desktop.unknown.charter.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

  • pg_xlog at 2010-02-11 22:09:07 from Albert Shih

Browse pgsql-admin by date

  From Date Subject
Next Message Albert Shih 2010-02-11 22:32:45 How to manage WAL
Previous Message Kevin Grittner 2010-02-11 22:20:26 Re: pg_xlog