Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4XAk-0002aY-CD for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Dec 2014 15:51:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y4XAj-0001oC-Rt for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Dec 2014 15:51:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y4XAh-0001lB-BN for pgsql-hackers@postgresql.org; Fri, 26 Dec 2014 15:51:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y4XA8-0002si-VU for pgsql-hackers@postgresql.org; Fri, 26 Dec 2014 15:50:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sBQFofUq031636; Fri, 26 Dec 2014 10:50:41 -0500 From: Tom Lane To: Kevin Grittner cc: "nikita.y.volkov@mail.ru" , "pgsql-hackers@postgresql.org" Subject: Re: BUG #12330: ACID is broken for unique constraints In-reply-to: <969937206.892402.1419607417808.JavaMail.yahoo@jws10072.mail.ne1.yahoo.com> References: <20141224140153.11501.49752@wrigleys.postgresql.org> <969937206.892402.1419607417808.JavaMail.yahoo@jws10072.mail.ne1.yahoo.com> Comments: In-reply-to Kevin Grittner message dated "Fri, 26 Dec 2014 15:23:37 +0000" Date: Fri, 26 Dec 2014 10:50:41 -0500 Message-ID: <31635.1419609041@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Kevin Grittner writes: > Are there any objections to generating a write conflict instead of > a duplicate key error if the duplicate key was added by a > concurrent transaction? Yes. This will deliver a less meaningful error code, *and* break existing code that is expecting the current behavior. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers