Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4ZmI-0001tJ-74 for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Dec 2014 18:38:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y4ZmH-0004RW-HT for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Dec 2014 18:38:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y4ZmE-0004RN-Ly for pgsql-hackers@postgresql.org; Fri, 26 Dec 2014 18:38:18 +0000 Received: from nm19-vm1.bullet.mail.ne1.yahoo.com ([98.138.91.56]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y4Zm6-0001uI-30 for pgsql-hackers@postgresql.org; Fri, 26 Dec 2014 18:38:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1419619088; bh=osiFnJTy63/0f0g6T1fH2nXZ9GuA4fVs4vLlDPwLX24=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=OskNEsIG9Eu350RfOhW/llR25Bl2HkNi4SYyrlZsAqLcSZSchN2p8RPtGeX6KvoNg8K2gkqwTS5kfGY5P+AHDboqMI2GKNF73N5t479MZ8DcWVl9gPTQ+Gq/ksFWkBIWkPcwFSu+g8Ht7zpxo51L7mzAPn2NAFRYj65eP8r8cLMVXmRL8+vmWYetCcjshhAPlwiCldSXRV7UnG+GjRN4IvYihJuizFgGWrAPmpZJfNDPVmIL/Npt6wLzdhgV4p963xM3wB461l+hGj8SNyb9OJKJL9ZzMBv/m8WVoJCCDSlAVjQRnD8MTUE1MZHE1wul/LAjQwCyqPDlEg2hDQhDSA== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=ymail.com; b=AFaCkhHAZ9q6Dzd2AuG455//4VyRd4H6jQOZn3RuZcFL/72eq7Gk2d741LBZrTzVcLeXggGwFSC6VUab3qWXGG9PdkGv9tq7kFvLnO/pLTegnFKRMVjdaB9icM4J4yCdQQjEhh9GrwcRnijsqtuZ6uqjPLz1y12dRL+kXZjuYbckG+VIw/Km3uw6iEFiZWP2OIv5eztXbkkS2ZwdlvJVioVz1E4XyIPZAUk0jGDKKYpZXZzBL7Wh6JDYIE8jVde7lhpu4GrOaRlI+ZIh5VLG0UQ+5swRabQ2LVMNA8l+6gFQEQBZup03B/fmgWMaN7bgmC7bozpUKGrfvfwz4IzLgQ==; Received: from [98.138.101.128] by nm19.bullet.mail.ne1.yahoo.com with NNFMP; 26 Dec 2014 18:38:08 -0000 Received: from [98.138.88.232] by tm16.bullet.mail.ne1.yahoo.com with NNFMP; 26 Dec 2014 18:38:08 -0000 Received: from [127.0.0.1] by omp1032.mail.ne1.yahoo.com with NNFMP; 26 Dec 2014 18:38:08 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 804976.16383.bm@omp1032.mail.ne1.yahoo.com X-YMail-OSG: .pYqZ04VM1n5OBeh8PO8M9gd58TvJ4VnCQMoOXNDbv88yI5orpeF18CpDrf_OZj JlgIEnPAi8wBfzT.x2O1tXCuyYqVumOYISYsbLjf5YcREzNz5CWkBafYk9yENggxEuGhVkiUcRrN cA2_t8Ui.l4FINvYMvGmDZgl.tLQNNY46STV6KYfVfZG1ZOkoRKWMznmuaLm7k9uBA2LhUOYwJTs 8NHNtmO7PvrGKkzcFQjtOPZxgbp0Y22RqLg98Dg3aWBe5.lENczbxTeG74andvv2IPw0XVOkHH.g KSiKoo8QbaehgvD4iYb_dHhOpu_lD4I9o8qsNRNYRoDZivz0NwovtNwMncE6_angda3Fp_Jl1OxW m8FjnbuzPLEbrJBgzscp6gXq4ULF8xPUgSetvYiI2F3k1Yz1uzvwpdU4NvyDV_Oech3b3eXuACz0 V6fSkeBA12jGDVu2HxJvjy6hQTZegsZkRi.XBshMdf7JSkwhgsryojl2scJjUafHnaPc6yjcEKBG jVFCD35PS2WzAgAbCU9bhQgem1FRg9pmNV3gL4ndLVTcXKxl5.EJzF40IDjfYUA-- Received: by 98.138.101.162; Fri, 26 Dec 2014 18:38:08 +0000 Date: Fri, 26 Dec 2014 18:38:01 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Tom Lane , Josh Berkus Cc: "nikita.y.volkov@mail.ru" , "pgsql-hackers@postgresql.org" Message-ID: <350083331.929532.1419619081068.JavaMail.yahoo@jws100139.mail.ne1.yahoo.com> In-Reply-To: <1116.1419615091@sss.pgh.pa.us> References: <1116.1419615091@sss.pgh.pa.us> Subject: Re: BUG #12330: ACID is broken for unique constraints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 1227 X-Pg-Spam-Score: -2.0 (--) 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 Tom Lane wrote: > Just for starters, a 40XXX error report will fail to provide the > duplicated key's value. This will be a functional regression, Not if, as is normally the case, the transaction is retried from the beginning on a serialization failure. Either the code will check for a duplicate (as in the case of the OP on this thread) and they won't see the error, *or* the the transaction which created the duplicate key will have committed before the start of the retry and you will get the duplicate key error. > 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. > but I see no mention of the issue in chapter 13.) I agree that's the best we can do for stable branches, and worth doing. It would be interesting to hear from others who have rely on serializable transactions in production environments about what makes sense to them. This is probably the wrong list to find such people directly; but I seem to recall Josh Berkus has a lot of clients who do. Josh? Any opinion on this thread? -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers