Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id CD7C09552D4 for ; Tue, 28 Feb 2012 12:24:11 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S2PqV-0007QS-2w for pgsql-bugs@postgresql.org; Tue, 28 Feb 2012 16:24:11 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S2PqI-0008Iv-GZ for pgsql-bugs@postgresql.org; Tue, 28 Feb 2012 16:23:58 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1S2PqI-0000DP-5q for pgsql-bugs@postgresql.org; Tue, 28 Feb 2012 16:23:58 +0000 Date: Tue, 28 Feb 2012 16:23:58 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6497: Error sent to client, but data written anyway To: pgsql-bugs@postgresql.org From: rlowe@pablowe.net X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/201 X-Sequence-Number: 32544 The following bug has been logged on the website: Bug reference: 6497 Logged by: Ryan Lowe Email address: rlowe@pablowe.net PostgreSQL version: 9.1.3 Operating system: Linux Description: = There is an edge case where Postgres will return an error to the client, but commit the operation anyway, thus breaking the contract with the client: postgres=3D# begin; insert into s.t (c) values (1); postgres=3D# commit; The data is now on both the master and slave, but the application believes that the transaction was rolled back. A well-behaved application will dutifully retry the transaction because it *should* have rolled back. However, the data is there so we'll have had the transaction execute *twice*.