Re: Streaming replication, some small issues - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Streaming replication, some small issues
Date
Msg-id 4B1E40EF.2020405@enterprisedb.com
Whole thread Raw
In response to Re: Streaming replication, some small issues  (Greg Stark <gsstark@mit.edu>)
Responses Re: Streaming replication, some small issues  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
Greg Stark wrote:
> On Tue, Dec 8, 2009 at 8:30 AM, Heikki Linnakangas
> <heikki.linnakangas@enterprisedb.com> wrote:
>> - It's possible to shut down master, change max_wal_senders to 0,
>> restart and do an operation like CLUSTER which then skips WAL-logging.
>> Then shutdown, change max_wal_senders back to non-zero. All this while
>> the standby is running. Leads to a corrupt standby.
> 
> The same thing is possible with archived logs as well, no?

Yeah, I think you're right.

> I suspect we should have a WAL record to say "unlogged operation
> performed here" which a standby database would recognize and throw a
> large warning up.

+1. Seems like a very simple solution.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Streaming replication, some small issues
Next
From: Greg Stark
Date:
Subject: Re: questions about concurrency control in Postgresql