Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UWq6N-0006SD-Ah for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Apr 2013 15:34:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UWq6M-0002nQ-QG for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Apr 2013 15:34:50 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UWmBg-0003Mc-R2 for pgsql-bugs@postgresql.org; Mon, 29 Apr 2013 11:24:04 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UWmBd-0000jL-SA for pgsql-bugs@postgresql.org; Mon, 29 Apr 2013 11:24:04 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UWmBc-0005dj-SJ for pgsql-bugs@postgresql.org; Mon, 29 Apr 2013 11:24:01 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UWmBX-0006ES-MB for pgsql-bugs@postgresql.org; Mon, 29 Apr 2013 11:23:55 +0000 Date: Mon, 29 Apr 2013 11:23:55 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #8127: After failed insert a select to figure out what failed is rejected To: pgsql-bugs@postgresql.org From: matti.aarnio@methics.fi X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8127 Logged by: Matti Aarnio Email address: matti.aarnio@methics.fi PostgreSQL version: 9.2.4 Operating system: Fedora 18 Description:=20=20=20=20=20=20=20=20 With table: CREATE TABLE demo ( pkey INTEGER PRIMARY KEY, key2 VARCHAR UNIQUE, key3 VARCHAR UNIQUE ); An insert that fails secondary constraint key does return SQL State 23505, and maybe an explanation message telling that "Key (key3)=3D".. " is duplicate." With Oracle we ask a SELECT after such an error on that table for all possibly existing secondary keys values, and get them to report detailed conflict information. With PostgreSQL we get following error on those error analysis SELECTs: ERROR: current transaction is aborted, commands ignored until end of transaction block Could PostgreSQL be similarly permissive (with respect of Oracle) allowing SELECTs within same transaction context that was already rejected? --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs