Re: Plans for 8.4

From: Markus Wanner <markus(at)bluegap(dot)ch>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Plans for 8.4
Date: 2008-07-22 21:08:56
Message-ID: 48864C68.6090807@bluegap.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Simon Riggs wrote:
> Reconstructing SQL from WAL, allowing logical apply. So yes, you're
> right, the actual replication of the data from one node to another is
> physical - its the final apply of the changes that is logical. So this
> fits neatly with our commitment to put synchronous replication into
> server.

Aha, thanks for your explanation.

> It allows WAL to be used as the replication transport, which reduces the
> impact of tracking changes via triggers. The presence of commit records
> in the sequence can be used to parallelize the apply phase if required.

I note you are comparing against trigger based replication solutions.

> I'm proposing to put the mechanisms in place to allow WAL to be used by
> other replication projects. Which turn out to be relatively small
> changes to the main server.

Comparing with the Postgres-R way to do it, there's a difference in the
serialized change set format. Where Postgres-R uses it's a specialized
format, you are proposing to use the existing WAL format to transfer
change set data, which is architecture dependent and quite tightly bound
to the physical format on disc. It cannot be changed to also carry other
information required for replication, without having an impact on WAL
for single node installations. I think the CPU load to serialize and
deserialize is pretty similar and most probably negligible.

Regards

Markus

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-07-22 21:24:00 Re: Do we really want to migrate plproxy and citext into PG core distribution?
Previous Message Josh Berkus 2008-07-22 21:06:09 Re: Do we really want to migrate plproxy and citext into PG core distribution?