Re: pg_xlog

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: pg_xlog
Дата
Msg-id 1265927077.28400.9.camel@jd-desktop.iso-8859-1.charter.com
обсуждение исходный текст
Ответ на pg_xlog  (Albert Shih <Albert.Shih@obspm.fr>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: How to manage WAL
Следующее
От: Renato Oliveira
Дата:
Сообщение: PG_DUMP backup