Re: pg_xlog

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Albert Shih" <Albert(dot)Shih(at)obspm(dot)fr>,<pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_xlog
Date: 2010-02-11 22:20:26
Message-ID: 4B742E4A020000250002F1F4@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Albert Shih <Albert(dot)Shih(at)obspm(dot)fr> wrote:

> 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'

It will keep each WAL file until your archive command which is
supposed to copy it completes with an exit code of zero. It sounds
like that's not happening. What does that destination directory
look like? What messages are you seeing in your log files?

> so can I just do
>
> postgresql stop
> rm f pg_xlog/*
> postgresql start

No.

-Kevin

In response to

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Joshua D. Drake 2010-02-11 22:24:37 Re: pg_xlog
Previous Message Albert Shih 2010-02-11 22:09:07 pg_xlog