Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4X47-0002C9-PM for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Dec 2014 15:44:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y4X47-0005Zy-9A for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Dec 2014 15:44:35 +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 1Y4X44-0005Wt-Pk for pgsql-hackers@postgresql.org; Fri, 26 Dec 2014 15:44:32 +0000 Received: from mail-wg0-f54.google.com ([74.125.82.54]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y4X42-0002gG-Bv for pgsql-hackers@postgresql.org; Fri, 26 Dec 2014 15:44:31 +0000 Received: by mail-wg0-f54.google.com with SMTP id l2so14672219wgh.41 for ; Fri, 26 Dec 2014 07:44:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=3M5kWeKwKjWT71hUL5iBb0gyw829vU1MuBDOHi99bRw=; b=CNlUrbFFGqAAMy6IWDSh8FqvprjiNso+QYnkEaSQbCoy7ZHN2zlpQoUZncACcLqpRA 7EPNfVSJCGK3irP9V9zgOu/l2kKBDKuuEh9ejbk62WV52vnHYhtq/o+kddiwlYIOAC0f ClLsvm7QdxeczEqnVhgnAvdu/Fwj0fOya+qis2qfu2jwCFYCNyliNEy0cfk9KE6c6vpU h7l/LqrigOuHxNt6Mx7WxvBw1zPZrv96NyhBUcN+NvWheZ7JcCKHp+PT8MekPd0BVjpx CxMKUHGVQ2ITVmWjxzHlkBLCUp3WoILLPYmRe4ASXpO90bG6ysI6kra9KviQAJJVyL+I TAmg== X-Gm-Message-State: ALoCoQlBWdP7JhM+YMSKGfHscU4g1dpZtf/TiPtJaDfop4Cf0xqpffEFzRE9CXhzZWwYGhp//jPI X-Received: by 10.180.78.73 with SMTP id z9mr69175297wiw.52.1419608669245; Fri, 26 Dec 2014 07:44:29 -0800 (PST) Received: from [192.168.1.6] (host37-154.cust.ktab.fi. [91.150.37.154]) by mx.google.com with ESMTPSA id pl1sm28592382wic.16.2014.12.26.07.44.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Dec 2014 07:44:28 -0800 (PST) Message-ID: <549D8259.3090109@joh.to> Date: Fri, 26 Dec 2014 17:44:25 +0200 From: Marko Tiikkaja User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Kevin Grittner , "nikita.y.volkov@mail.ru" , "pgsql-hackers@postgresql.org" Subject: Re: BUG #12330: ACID is broken for unique constraints References: <20141224140153.11501.49752@wrigleys.postgresql.org> <969937206.892402.1419607417808.JavaMail.yahoo@jws10072.mail.ne1.yahoo.com> In-Reply-To: <969937206.892402.1419607417808.JavaMail.yahoo@jws10072.mail.ne1.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 2014-12-26 17:23, Kevin Grittner wrote: > 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? Only for transactions at isolation level > REPEATABLE READ or higher? Is it possible to distinguish between an actual write conflict and a completely unrelated UNIQUE constraint ending up violated for some reason? .marko -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers