Re: Using RSYNC for replication?

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Using RSYNC for replication?
Дата
Msg-id 87lm0yqqmy.fsf@stark.dyndns.tv
обсуждение исходный текст
Ответ на Re: Using RSYNC for replication?  ("Shridhar Daithankar<shridhar_daithankar@persistent.co.in>" <shridhar_daithankar@persistent.co.in>)
Список pgsql-general
"Shridhar Daithankar<shridhar_daithankar@persistent.co.in>" <shridhar_daithankar@persistent.co.in> writes:

> That makes me wonder. How hard it is to create async replication based on WAL,
> assuming there is not one already.

What you describe below sounds like what Oracle calls a warm standby database.

It's not replication because you can't be doing separate operations in the
standby database and expect the logs from the original database to still apply
cleanly.

Even so it's an extremely useful configuration. It's allows instantaneous
fail-over to the standby database without having to restore from backups. And
Oracle lets you open the standby database read-only which is extremely useful
for doing large batch queries without slowing down your main OLTP database.

> Create a daemon that watches WAL dir. As soon as a new file is created, old
> file is copied at someplace else, which can also be dropped into WAL dir. of
> another installation and it will sync up.
>
> Assumming WAL naming notation/names can be tweaked by external program, is it
> correct idea of async notation? It should not be that hard to come up with
> such a daemon.

--
greg

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Query plan question, and a memory leak
Следующее
От: "Terri Lerose"
Дата:
Сообщение: unsubscribe