Re: Transaction-controlled robustness for replication

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Transaction-controlled robustness for replication
Дата
Msg-id 20080813043810.GD9468@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Transaction-controlled robustness for replication  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Transaction-controlled robustness for replication  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Transaction-controlled robustness for replication  (Markus Wanner <markus@bluegap.ch>)
Список pgsql-hackers
Tom Lane wrote:

> What I think Simon was actually driving at was query-shipping, which is
> not my idea of "WAL" at all.  It has some usefulness, but also a bunch
> of downsides of its very own, mostly centered around reproducibility.
> With the current WAL design I have some faith that the slaves reproduce
> the contents of the master.  With any "logical replication" design that
> becomes a faith of the religious kind, because it sure isn't provable.

Actually I think the idea here is to take certain WAL records, translate
them into "portable" constructs, ship them, and let the slave handle the
remaining tasks that need to be done with it.  For example you would
only ship heap insert, not index insert; the slave needs to take this
insert and derive the appropriate index operations that the slave needs.

What's needed here is a process that is able to read (or receive from
the backend calling the XLogInsert) WAL records and at the same time
have catalog access for getting type I/O data, converting relation OIDs
into table names if needed, etc.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Replay attack of query cancel
Следующее
От: Robert Hodges
Дата:
Сообщение: Re: Transaction-controlled robustness for replication