Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4Yjq-0007K5-Vs for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Dec 2014 17:31:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y4Yjp-0003i6-Ij for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Dec 2014 17:31:45 +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 1Y4Yjo-0003hg-8m for pgsql-hackers@postgresql.org; Fri, 26 Dec 2014 17:31:44 +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 1Y4Yjl-0004hn-29 for pgsql-hackers@postgresql.org; Fri, 26 Dec 2014 17:31:43 +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 sBQHVVtl001117; Fri, 26 Dec 2014 12:31:31 -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: <214229149.918351.1419614175060.JavaMail.yahoo@jws100210.mail.ne1.yahoo.com> References: <31635.1419609041@sss.pgh.pa.us> <214229149.918351.1419614175060.JavaMail.yahoo@jws100210.mail.ne1.yahoo.com> Comments: In-reply-to Kevin Grittner message dated "Fri, 26 Dec 2014 17:16:15 +0000" Date: Fri, 26 Dec 2014 12:31:31 -0500 Message-ID: <1116.1419615091@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: > Tom Lane wrote: >> Yes. This will deliver a less meaningful error code, > That depends entirely on whether you care more about whether the > problem was created by a concurrent transaction or exactly how that > concurrent transaction created the problem. Just for starters, a 40XXX error report will fail to provide the duplicated key's value. This will be a functional regression, on top of breaking existing code. I think an appropriate response to these complaints is to fix the documentation to point out that duplicate-key violations may also be worthy of retries. (I sort of thought it did already, actually, but I see no mention of the issue in chapter 13.) 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