Re: Streaming replication, some small issues
Fujii Masao <masao.fujii@gmail.com>
From: Fujii Masao <masao.fujii@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>, Greg Stark <gsstark@mit.edu>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2009-12-09T09:25:09Z
Lists: pgsql-hackers
Attachments
- log_unlogged_op.patch (text/x-patch) patch
On Wed, Dec 9, 2009 at 10:51 AM, Fujii Masao <masao.fujii@gmail.com> wrote: > On Wed, Dec 9, 2009 at 10:12 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> Fujii Masao <masao.fujii@gmail.com> writes: >>> Thought? Am I missing something? >> >> This seems terribly overdesigned. Just emit a warning when you see >> the "unlogged op" record and have done. > > Sounds quite simple. OK, I'll do so. Here is the patch: - Write an XLOG UNLOGGED record in WAL if WAL-logging is skipped for only the reason that WAL archiving is not enabled and such record has not been written yet. - Cause archive recovery to end if an XLOG UNLOGGED record is found during it. I add this patch to the CommitFest 2010-01. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center