From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Boszormenyi Zoltan <zb(at)cybertec(dot)at>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Synchronization levels in SR |
Date: | 2010-09-08 12:30:34 |
Message-ID: | AANLkTinZ+jmredhtnBtBAQfC9A26b8ksrx43cizeYJxs@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Sep 8, 2010 at 8:43 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> I still don't see why it matters whether you wait before or after
> releasing locks. As soon as the transaction is marked committed in
> CLOG, other transactions can potentially see its effects.
AFAIR, even if CLOG has been updated, until the transaction is marked
as no longer running in PGPROC, probably other transactions cannot
see its effects. But, if it's not true, I'd make the transaction wait
for replication before CLOG update.
> And in any event, there is ALWAYS a window of
> time during which the client doesn't know the transaction has
> committed but other transactions can potentially see its effects.
Yep. The problem here is that synchronous replication is likely to
make the window very big.
Regards,
--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Markus Wanner | 2010-09-08 12:47:35 | Re: Synchronization levels in SR |
Previous Message | Robert Haas | 2010-09-08 11:43:15 | Re: Synchronization levels in SR |