Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 3FFC0AD3D77 for ; Wed, 29 Feb 2012 17:15:34 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S2qrz-0000YK-24 for pgsql-bugs@postgresql.org; Wed, 29 Feb 2012 21:15:33 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q1TLFIBt007956; Wed, 29 Feb 2012 16:15:18 -0500 (EST) To: Christophe Pettus cc: Ryan Lowe , Kevin Grittner , pgsql-bugs@postgresql.org Subject: Re: BUG #6497: Error sent to client, but data written anyway In-reply-to: References: <23519.1330465109@sss.pgh.pa.us> <4F4CFA640200002500045CAC@gw.wicourts.gov> <29380.1330468930@sss.pgh.pa.us> Comments: In-reply-to Christophe Pettus message dated "Wed, 29 Feb 2012 13:05:20 -0800" Date: Wed, 29 Feb 2012 16:15:18 -0500 Message-ID: <7955.1330550118@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/215 X-Sequence-Number: 32558 Christophe Pettus 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