Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzlNg-0007NL-AU for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Sep 2018 16:19:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fzlNe-00022v-8B for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Sep 2018 16:19:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzlNe-00022o-1L for pgsql-hackers@lists.postgresql.org; Tue, 11 Sep 2018 16:19:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzlNb-0005RS-Bg for pgsql-hackers@lists.postgresql.org; Tue, 11 Sep 2018 16:19:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w8BGIxwV029307; Tue, 11 Sep 2018 12:19:00 -0400 From: Tom Lane To: Andres Freund cc: Simon Riggs , Robert Haas , Jeff Janes , PostgreSQL Hackers Subject: Re: StandbyAcquireAccessExclusiveLock doesn't necessarily In-reply-to: <20180911161232.d6ajdhkbss7vdeky@alap3.anarazel.de> References: <6202.1536359835@sss.pgh.pa.us> <22379.1536675935@sss.pgh.pa.us> <20180911152929.7xo4qgb3eyz6djfu@alap3.anarazel.de> <28427.1536681824@sss.pgh.pa.us> <20180911161232.d6ajdhkbss7vdeky@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 11 Sep 2018 09:12:32 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29305.1536682739.1@sss.pgh.pa.us> Date: Tue, 11 Sep 2018 12:18:59 -0400 Message-ID: <29306.1536682739@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-09-11 12:03:44 -0400, Tom Lane wrote: >> If the startup process has acquired enough AELs to approach locktable >> full, any concurrent pg_dump has probably failed already, because it'd >> be trying to share-lock every table and so would have a huge conflict >> cross-section; it's hard to believe it wouldn't get cancelled pretty >> early in that process. (Again, if you think this scenario is probable, >> you have to explain the lack of field complaints.) > I was thinking of the other way round - there's a running pg_dump and > then somebody does a bit of DDL (say a DROP SCHEMA CASCADE in a > multi-tenant scenario). Doesn't matter: startup would hit a lock conflict and cancel the pg_dump to get out of it, long before approaching locktable full. regards, tom lane