Re: Synch Rep for CommitFest 2009-07

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Synch Rep for CommitFest 2009-07
Date: 2009-07-14 18:56:24
Message-ID: 4A5CD4D8.7030403@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fujii Masao wrote:
> On Fri, Jul 3, 2009 at 1:32 PM, Fujii Masao<masao(dot)fujii(at)gmail(dot)com> wrote:
>>> This patch no longer applies cleanly. Can you rebase and resubmit it
>>> for the upcoming CommitFest? It might also be good to go through and
>>> clean up the various places where you have trailing whitespace and/or
>>> spaces preceding tabs.
>> Sure. I'll resubmit the patch after fixing some bugs and finishing
>> the documents.
>
> Here is the updated version of Synch Rep patch. I adjusted the patch
> against CVS HEAD, fixed some bugs and updated the documents.
>
> The attached tarball contains some patches which were split to be
> reviewed easily. Description of each patches, a brief procedure to
> set up Synch Rep and the functional overview of it are in wiki.
> http://wiki.postgresql.org/wiki/NTT's_Development_Projects
>
> If you notice anything, please feel free to comment!

Here's one little thing in addition to all the stuff already discussed:

The only caller that doesn't pass XLogSyncReplication as the new 'mode'
argument to XLogFlush is this CreateCheckPoint:

***************
*** 6569,6575 ****
XLOG_CHECKPOINT_ONLINE,
&rdata);

! XLogFlush(recptr);

/*
* We mustn't write any new WAL after a shutdown checkpoint, or it will
--- 7667,7677 ----
XLOG_CHECKPOINT_ONLINE,
&rdata);

! /*
! * Don't shutdown until all outstanding xlog records are replicated and
! * fsynced on the standby, regardless of synchronization mode.
! */
! XLogFlush(recptr, shutdown ? REPLICATION_MODE_FSYNC :
XLogSyncReplication);

/*
* We mustn't write any new WAL after a shutdown checkpoint, or it will

If that's the only such caller, let's introduce a new function for that
and keep the XLogFlush() api unchanged.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jamie Fox 2009-07-14 18:59:39 Re: [GENERAL] large object does not exist after pg_migrator
Previous Message Kenneth Marshall 2009-07-14 18:29:04 Re: WIP: Deferrable unique constraints