Re: Transaction-controlled robustness for replication

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Markus Wanner <markus(at)bluegap(dot)ch>, Robert Hodges <robert(dot)hodges(at)continuent(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Jens-Wolfhard Schicke <drahflow(at)gmx(dot)de>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Transaction-controlled robustness for replication
Date: 2008-08-13 04:38:10
Message-ID: 20080813043810.GD9468@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Hodges 2008-08-13 04:45:03 Re: Transaction-controlled robustness for replication
Previous Message Simon Riggs 2008-08-13 04:30:37 Re: SeqScan costs