Re: record-based log shipping

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: record-based log shipping
Дата
Msg-id Pine.GSO.4.64.0712072124580.10014@westnet.com
обсуждение исходный текст
Ответ на record-based log shipping  (SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>)
Ответы Re: record-based log shipping  (Alex Vinogradovs <AVinogradovs@Clearpathnet.com>)
Список pgsql-general
On Thu, 6 Dec 2007, SHARMILA JOTHIRAJAH wrote:

> Have anyone implemented or tried record-based log shipping? If so is
> there any other materials in the web other than the documentation (it
> has very few details about this)

There is an implementation of that as part of the Skytools WalMgr code:
https://developer.skype.com/SkypeGarage/DbProjects/SkyTools

Some sample interesting parts are in the walmgr.py file, in the
master_sync function, where they run

select file_name, file_offset from pg_xlogfile_name_offset(pg_current_xlog_location())

and then copy that section of the current WAL file over.

It's kind of hard to reuse any portion of their solution without adopting
the whole thing, but it's a decent approach if you're comfortable with
Python code.

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

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Column pgl.transaction does not exist in 8.3 beta 4
Следующее
От: Alex Vinogradovs
Дата:
Сообщение: Re: record-based log shipping