AW: Re: Backup and Recovery

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: Re: Backup and Recovery
Дата
Msg-id 11C1E6749A55D411A9670001FA68796336835C@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: Re: Backup and Recovery  (ncm@zembu.com (Nathan Myers))
Список pgsql-hackers
> I imagine a daemon extracting redo log entries from WAL segments, 
> asynchronously.  Mixing redo log entries into the WAL allows the WAL 
> to be the only synchronous disk writer in the system, a Good Thing.

This comes up periodically now. WAL currently already has all the info
that would be needed for redo (it actually has to). All that is missing 
is a program, that can take a consistent physical snapshot (as it was after 
a particular checkpoint) and would replay the WAL after a restore of such a 
snapshot. This replay after a consistent snapshot is probably as simple
as making the WAL files available to the standard startup rollforward (redo) 
mechanism, that is already implemented.

Actually it might even be possible to do the WAL redo based on
an inconsistent backup (e.g. done with tar/cpio), but that probably needs 
more thought and testing than above. At the least, the restore would need to 
generate a valid pg_control before starting redo.

Andreas


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Buffer access rules, and a probable bug
Следующее
От: Klaus Reger
Дата:
Сообщение: Get table/field-identifiers in uppercase