From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christophe Pettus <xof@thebuild.com>
Cc: Ryan Lowe <rlowe@pablowe.net>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6497: Error sent to client, but data written anyway
Date: Wed, 29 Feb 2012 16:15:18 -0500
Message-ID: <7955.1330550118@sss.pgh.pa.us> (raw)
In-Reply-To: <B735DD60-9C56-41F5-BC34-3709A4A0BDE1@thebuild.com>
References: <E1S2PqI-0000DP-5q@wrigleys.postgresql.org>
<23519.1330465109@sss.pgh.pa.us>
<4F4CFA640200002500045CAC@gw.wicourts.gov>
<29380.1330468930@sss.pgh.pa.us>
<CADsh6kvZ4FhDBmeh0A=2RtYgtMtCxNNe9sb0hp=TJMccCX0XHg@mail.gmail.com>
<B735DD60-9C56-41F5-BC34-3709A4A0BDE1@thebuild.com>
Christophe Pettus <xof@thebuild.com> writes:
> On Feb 29, 2012, at 9:26 AM, Ryan Lowe wrote:
>> Thanks for all the responses, but I think I'm being unclear here.
> The point Tom was making is that this is indistinguishable from the scenario:
> 1. Client sends commit.
> 2. Server successfully commits data.
> 3. Server starts to write response.
> 4. Network fails.
> 5. Client receives abnormal disconnection response from its network connection to the server.
Well, that's the argument as to why the client code has to be capable of
checking whether the commit happened if it's going to attempt a
reconnect and retry. But there's a quite separate question as to
whether the behavior Ryan is claiming for a pre-commit crash is actually
possible. I don't believe it, and I failed to reproduce his test
scenario.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, xof@thebuild.com, rlowe@pablowe.net, Kevin.Grittner@wicourts.gov
Subject: Re: BUG #6497: Error sent to client, but data written anyway
In-Reply-To: <7955.1330550118@sss.pgh.pa.us>
References: <E1S2PqI-0000DP-5q@wrigleys.postgresql.org> <23519.1330465109@sss.pgh.pa.us> <4F4CFA640200002500045CAC@gw.wicourts.gov> <29380.1330468930@sss.pgh.pa.us> <CADsh6kvZ4FhDBmeh0A=2RtYgtMtCxNNe9sb0hp=TJMccCX0XHg@mail.gmail.com> <B735DD60-9C56-41F5-BC34-3709A4A0BDE1@thebuild.com> <7955.1330550118@sss.pgh.pa.us>
* 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