Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 8F86DB37936 for ; Sun, 10 Jun 2012 18:09:12 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SdpNm-0002qF-2U for pgsql-bugs@postgresql.org; Sun, 10 Jun 2012 21:09:11 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q5AL8udM020229; Sun, 10 Jun 2012 17:08:56 -0400 (EDT) From: Tom Lane To: mthornton@optrak.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6685: Concurrency fault in create table In-reply-to: References: Comments: In-reply-to mthornton@optrak.com message dated "Sun, 10 Jun 2012 10:25:43 -0000" Date: Sun, 10 Jun 2012 17:08:56 -0400 Message-ID: <20228.1339362536@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/89 X-Sequence-Number: 33316 mthornton@optrak.com writes: > The following bug has been logged on the website: > Bug reference: 6685 > Logged by: Mark Thornton > Email address: mthornton@optrak.com > PostgreSQL version: 9.1.4 > Operating system: Ubuntu 12.04 > Description: > Executing > create table child_a () inherits (parent) > create table child_b () inherits (parent) > concurrently (two separate connections) results in an error "concurrent > tuple update". You sure that's a 9.1 server? I can reproduce such an error in older releases, but not 9.1. I believe the relevant fix is http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=fbcf4b92aa64d4577bcf25925b055316b978744a As noted there, the change wasn't back-patched for fear that the stronger lock on the parent table might be an undesirable behavioral change for some applications. regards, tom lane