Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEEmK-0006sm-5J for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2020 16:41:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kEEmG-0005sS-92 for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2020 16:41:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEEmG-0005sH-1z for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2020 16:41:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEEmD-0005T2-U2 for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2020 16:41:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 084GfN38900026; Fri, 4 Sep 2020 12:41:23 -0400 From: Tom Lane To: Alvaro Herrera cc: pgsql-hackers@lists.postgresql.org Subject: Re: Rare deadlock failure in create_am test In-reply-to: <20200904142033.GA8294@alvherre.pgsql> References: <20200904142033.GA8294@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 04 Sep 2020 10:20:33 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <900024.1599237683.1@sss.pgh.pa.us> Date: Fri, 04 Sep 2020 12:41:23 -0400 Message-ID: <900025.1599237683@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2020-Sep-03, Tom Lane wrote: >> I'm inclined to think that the best fix is to put >> >> begin; >> lock table [fast_emp4000]; >> ... >> commit; >> >> around the DROP CASCADE. > Yeah, sounds good. Done. regards, tom lane