pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Markus Wanner <markus@bluegap.ch>
To: Greg Stark <gsstark@mit.edu>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: MARK CALLAGHAN <mdcallag@gmail.com>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Aidan Van Dyk <aidan@highrise.ca>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Efficient transaction-controlled synchronous replication.
Date: Fri, 18 Mar 2011 20:17:56 +0100
Message-ID: <4D83AFE4.8020207@bluegap.ch> (raw )
In-Reply-To: <AANLkTikY31HTM=JPY+UyKG1EuhMy-iyaDbLH-j51uLfj@mail.gmail.com >
References: <E1PwMns-00047O-UU@gemulon.postgresql.org >
<4D741441.2090704@dunslane.net >
<1299454125.1696.6138.camel@ebony >
<4D74896C.5030402@enterprisedb.com >
<4D74DDFA.70800@dunslane.net >
<4D74E584.7080409@enterprisedb.com >
<4D74E9FA.7070202@dunslane.net >
<AANLkTinkzJ=UrLbThZy2KeQg+SjwYqj2r0mDomMwirB7@mail.gmail.com >
<4D74F3AE.9000802@dunslane.net >
<4D74FDEC.5040406@enterprisedb.com >
<4D74FF15.1070804@dunslane.net >
<1299513979-sup-1987@alvh.no-ip.org >
<4D832571.5030808@bluegap.ch >
<AANLkTi=B+cWE-pQJQM=zoA9=Zr25W7zPPMFvvBe11O4E@mail.gmail.com >
<1300457958.18619.13780.camel@ebony >
<4D832B4D020000250003BA98@gw.wicourts.gov >
<4D837EA2.2070205@enterprisedb.com >
<1300465171.18619.15193.camel@ebony >
<AANLkTinSxW_DrJwwfcOoEoJV-UeuVZjrtoSKeP5R69WE@mail.gmail.com >
<AANLkTikY31HTM=JPY+UyKG1EuhMy-iyaDbLH-j51uLfj@mail.gmail.com >
On 03/18/2011 06:35 PM, Greg Stark wrote:
> I think promising that the COMMIT doesn't return until the transaction
> and all previous transactions are replicated is enough. We don't have
> to promise that nobody else will see it either. Those same
> transactions eventually have to commit as well
No, they don't have to. They can ROLLBACK, get aborted, lose connection
to the master, etc.. The issue here is that, given the MySQL scheme,
these transactions see a snapshot that's not durable, because at that
point in time, no standby guarantees to have stored the transaction to
be committed, yet. So in case of a failover, you'd suddenly see a
different snapshot (and lose changes of that transaction).
> This is akin to the synchronous_commit=off case where other
> transactions can see your data as soon as you commit even before the
> xlog is fsynced. If you have synchronous_commit mode enabled then
> you'll block until your xlog is fsynced and that will implicitly mean
> the other transactions you saw were also fsynced.
Somewhat, yes. And for exactly that reason, most users run with
synchronous_commit enabled. They don't want to lose committed transactions.
Regards
Markus Wanner
view thread (85+ messages) latest in thread
Message-ID: <4D83AFE4.8020207@bluegap.ch>
Permalink: ../4D83AFE4.8020207@bluegap.ch/
Also on: postgresql.org/message-id/4D83AFE4.8020207@bluegap.ch
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: markus@bluegap.ch, gsstark@mit.edu, robertmhaas@gmail.com, simon@2ndquadrant.com, heikki.linnakangas@enterprisedb.com, Kevin.Grittner@wicourts.gov, mdcallag@gmail.com, alvherre@commandprompt.com, andrew@dunslane.net, aidan@highrise.ca, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Efficient transaction-controlled synchronous replication.
In-Reply-To: <4D83AFE4.8020207@bluegap.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox