Re: question about warm standby databases in 8.2.5

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: question about warm standby databases in 8.2.5
Дата
Msg-id 1197361248.4255.1204.camel@ebony.site
обсуждение исходный текст
Ответ на question about warm standby databases in 8.2.5  ("Brett Neumeier" <bneumeier@gmail.com>)
Список pgsql-general
On Mon, 2007-12-10 at 22:43 -0600, Brett Neumeier wrote:

> It seems that the recovery command always copies the source WAL file
> (with a name like 00000001000000020000009C) to a file path
> "pg_xlog/RECOVERYXLOG", which is fine. However, then when we abort
> recovery, postgresql seems to expect that the most recent WAL log
> should be in pg_xlog with its original filename, e.g., the 0....9C
> filename from above.

This allows the recovery to be restartable, which you'll want even if if
you haven't realised it yet.

> This seems broken -- if the WAL file should wind up in the pg_xlog
> directory with the 0...9C name, why isn't postgresql copying it there?

This part of the design specifically allows infinitely long recoveries.

You can only delete WAL files prior to the last restartpoint.

--
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com


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

Предыдущее
От: "Matt Magoffin"
Дата:
Сообщение: how to create aggregate xml document in 8.3?
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: partitioned table query question