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 1kECEq-0007qS-Ua for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2020 13:58:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kECEo-0004vM-5x for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2020 13:58:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kECEn-0004vD-Uh for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2020 13:58:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kECEh-0003sx-M0 for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2020 13:58:44 +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 084DwZIc872416; Fri, 4 Sep 2020 09:58:36 -0400 From: Tom Lane To: Thomas Munro cc: PostgreSQL Hackers , Alvaro Herrera Subject: Re: Rare deadlock failure in create_am test In-reply-to: References: <839004.1599185607@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Fri, 04 Sep 2020 22:02:08 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <872414.1599227915.1@sss.pgh.pa.us> Date: Fri, 04 Sep 2020 09:58:35 -0400 Message-ID: <872415.1599227915@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Fri, Sep 4, 2020 at 2:13 PM Tom Lane wrote: >> I'm inclined to think that the best fix is to put >> >> begin; >> lock table tenk2; >> ... >> commit; > Makes sense, except s/tenk2/fast_emp4000/, no? Sorry, thinko ... regards, tom lane