Re: Replication - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Replication
Date
Msg-id 20060821175246.GA11151@alvh.no-ip.org
Whole thread Raw
In response to Re: Replication  (Markus Schiltknecht <markus@bluegap.ch>)
Responses Re: Replication
Re: Replication
List pgsql-hackers
Markus Schiltknecht wrote:
> Jeff Davis wrote:
>  > How does WAL shipping help synchronous replication?
> 
> The WAL is written _before_ commit, logging all the changes the 
> transaction wants to write to the disk. This makes it look very similar 
> to what is needed for synchronous replication.
> 
> Instead of waiting for confirmation from the disk, that your WAL has 
> been written, you would have to wait from the network to confirm that 
> the changes have been delivered via the network.

But the confirmation that needs to come is that the WAL changes have
been applied (fsync'ed), so the performance will be terrible.  So bad,
that I don't think anyone will want to use such a replication system ...

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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: ISBN/ISSN/ISMN/EAN13 module
Next
From: Bruce Momjian
Date:
Subject: Re: Altering view ownership doesn't work ...