Re: pg_xlog - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: pg_xlog
Date
Msg-id 4B742E4A020000250002F1F4@gw.wicourts.gov
Whole thread Raw
In response to pg_xlog  (Albert Shih <Albert.Shih@obspm.fr>)
Responses Re: pg_xlog
PG_DUMP backup
List pgsql-admin
Albert Shih <Albert.Shih@obspm.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

pgsql-admin by date:

Previous
From: Albert Shih
Date:
Subject: pg_xlog
Next
From: "Joshua D. Drake"
Date:
Subject: Re: pg_xlog