Re: Point in Time Recovery

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема Re: Point in Time Recovery
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA40184D147@m0114.s-mxs.net
обсуждение исходный текст
Ответ на Point in Time Recovery  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Point in Time Recovery
Список pgsql-hackers
> The recovery mechanism doesn't rely upon you knowing 1 or 3. The
> recovery reads pg_control (from the backup) and then attempts to
> de-archive the appropriate xlog segment file and then starts
> rollforward

Unfortunately this only works if pg_control was the first file to be
backed up (or by chance no checkpoint happened after backup start and
pg_control backup)

Other db's have commands for:
start/end external backup

Maybe we should add those two commands that would initially only do
the following:

start external backup:- (checkpoint as an option)- make a copy of pg_control
end external backup:- record WAL position (helps choose an allowed minimum PIT)

Those commands would actually not be obligatory but recommended, and would
only help with the restore process.

Restore would then eighter take the existing pg_control backup, or ask
the dba where rollforward should start and create a corresponding pg_control.
A helper utility could list possible checkpoints in a given xlog.

Andreas


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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Release planning
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Point in Time Recovery