Re: Problems with postgres online backup - restore

Поиск
Список
Период
Сортировка
Искать
От
Richard Huxton
Тема
Re: Problems with postgres online backup - restore
Дата
Msg-id
4A43CD72.6080802@archonet.com
Ответ на
Список
Дерево обсуждения
Problems with postgres online backup - restore "Chris Barnes" <cbarnes@recognia.com>
Re: Problems with postgres online backup - restore Gerhard Wiesinger <lists@wiesinger.com>
Re: Problems with postgres online backup - restore Richard Huxton <dev@archonet.com>
Re: Problems with postgres online backup - restore Gerhard Wiesinger <lists@wiesinger.com>
Re: Problems with postgres online backup - restore Richard Huxton <dev@archonet.com>
Re: Problems with postgres online backup - restore Gerhard Wiesinger <lists@wiesinger.com>
Gerhard Wiesinger wrote:
> Hello,
> 
> I'd like to understand the PostgreSQL internals in "backup mode".
> 
> When I understood it correctly pg_start_backup() make a checkpoint and 
> stops writing to the data/ directory except the WAL.
> 
> All new transaction go into WAL which is also logical. But how is data 
> consistency done when the written/changed blocks don't fit into the 
> buffer cache?

The data isn't kept consistent. Which is why you need the WAL. Restoring 
from a PITR backup is basically the same idea as recovering from a 
crash. Any blocks that might have been updated since you called 
pg_start_backup() will be rewritten from the WAL.

-- 
   Richard Huxton
   Archonet Ltd
В списке pgsql-general по дате отправления
От: Bill Moran
Дата:
Сообщение: Re: Need suggestions
От: Jack W
Дата:
Сообщение: Re: Need suggestions
FAQ