Re: is it safe to clear oroginal xlog after archiving it?

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: is it safe to clear oroginal xlog after archiving it?
Дата
Msg-id alpine.GSO.2.01.0906040952570.2894@westnet.com
обсуждение исходный текст
Ответ на is it safe to clear oroginal xlog after archiving it?  (hubert depesz lubaczewski <depesz@depesz.com>)
Список pgsql-general
On Thu, 4 Jun 2009, hubert depesz lubaczewski wrote:

> is it safe, if i would do:
> dd if=/dev/zero of=$ORIGINAL_XLOG_SEGMENT bs=1M count=16
> before returning from archive_command script?

Nope.  At that point, the files are still needed for crash recovery on
that system.  There will be a future point where a checkpoint will note
the files aren't needed anymore, and at that point they'll be recycled
(renamed with a new id and used again) or deleted.  You can't change the
files until then though, and that time can be several minutes after
archive_command is called.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

В списке pgsql-general по дате отправления:

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: Upgrading Database: need to dump and restore?
Следующее
От: Sam Mason
Дата:
Сообщение: Re: Division by zero