Re: Reliability of WAL replication

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Marc Schablewski <ms(at)clickware(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Reliability of WAL replication
Date: 2007-10-23 12:37:01
Message-ID: 1193143021.4257.105.camel@ebony.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2007-10-23 at 13:58 +0200, Marc Schablewski wrote:
> We had some corrupted data files in the past (missing clog, see
> http://archives.postgresql.org/pgsql-bugs/2007-07/msg00124.php) and are
> thinking about setting up a warm standby system using WAL replication.
>
> Would an error like the one we had appear in WAL and would it be
> replicated too? Or is there some kind of consistency check, that
> prevents broken WAL from being restored?

Each WAL record is CRC checked, so it is quite unlikely that it could be
corrupt on its own.

The contents of the WAL record may cause the system to do something
wrong on the second server, but if this occurs it usually causes some
form of error and we can see that this has happened, report the bug and
then restart replication. If that kind of error occurs it is because of
a problem in the PostgreSQL software, not a fault of the replication
technique. That means these incidents are very rare and we have quickly
fixed such bugs when they do occur. I think this has happened twice in
12-18 months.

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Benjamin Weaver 2007-10-23 12:42:18 Re: unicode searches failing that use % and LIKE operators
Previous Message Pavel Stehule 2007-10-23 12:32:51 Re: Bitmap Heap scan 8.1/8.2