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 1n72Dt-0002Y4-MD for pgsql-general@arkaria.postgresql.org; Mon, 10 Jan 2022 21:29:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n72Ds-0002Tw-9t for pgsql-general@arkaria.postgresql.org; Mon, 10 Jan 2022 21:29:00 +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 1n72Dq-0002Tl-LF for pgsql-general@lists.postgresql.org; Mon, 10 Jan 2022 21:28:59 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n72Dm-0003nS-59 for pgsql-general@lists.postgresql.org; Mon, 10 Jan 2022 21:28:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id F41F03201FC6; Mon, 10 Jan 2022 16:28:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 10 Jan 2022 16:28:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=x UVfv+6YwQ1hXMvBizcqsEHGMGYSWZh3ZwNmu1WF5eU=; b=hEXHUbTHy4Ufr5Dtp PJhbXrkyy//7CFpQNtXQDao3uIKJhMDeFcPfODNEqYDeunnLTo8uo/zLnqo9+WSj ut0ElOP28ygo8oZhQ58sEehMtSWfUQOTcAbFmpdFLisbSCjbc/YYaXWZramWaVYh 7ChZIIHvji4OyfJRHSydEUu7DoZalqWkSk2J5Osa73GEO20RuJP7t859lmE06jBq YYAgKUKpdhvzG3BPQTg82IQsDP2rSRKNHXx3hITAbAu6OXC4aMA60FSRWNbLhere W6whZ8VsHmMERlwND3VgzXlw73r/CYHM5sbe84Cm/2ZAhAEWEFUFkziipT/52yxt 9/BRw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=xUVfv+6YwQ1hXMvBizcqsEHGMGYSWZh3ZwNmu1WF5 eU=; b=kpd9kY5ZRu0JAzmfkj8bRlaCIgzCarbS8VLgum96HF8DIz/55B61tzwVa /d26Q4VmTJQdJNiy/vXuJUsUFO4dJoXpFa4CLXy4ByES8RfLSuvrVbTU3uR+Hopw WdelT/FGJPHPenpG/7XCH4YHHIE0rFSM0sIBeB2T+0BQyLtOB0Ve9BzIEV59N5+r H6SOtHqWFmfAcKfrmSk6yicoYDiyHODaRse5rZ9rem8ftrT6xRZqMABvlRgbqaVa s5Lz3Q21m+To0UNfPbJxnI9kFJgUMQRHC2PpDG9VlHFKyaXouh0++MLehHi1kWzv VkvXrdIQB/k0XVxzZjWhqUpnrTxXQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudehuddguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepleekgeejhfekteehfeduveetheeivdduheekudel teefvdffueehtddvgedtfeefnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughr ihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Jan 2022 16:28:48 -0500 (EST) Message-ID: <6a7ed4b9-54be-3ec7-0965-a20a2c7a5ecf@aklaver.com> Date: Mon, 10 Jan 2022 13:28:47 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: DROP OWNED BY fails with #53200: ERROR: out of shared memory Content-Language: en-US To: "David G. Johnston" , Dominique Devienne Cc: "pgsql-generallists.postgresql.org" References: <2208869.1641836366@sss.pgh.pa.us> From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/10/22 13:08, David G. Johnston wrote: > On Mon, Jan 10, 2022 at 12:09 PM Dominique Devienne > wrote: > > Given |max_locks_per_transaction| * (max_connections >  + > max_prepared_transactions > ) > from > https://www.postgresql.org/docs/current/runtime-config-locks.html > , > and max_conn being 100, that's not many locks. > > Tom wrote "relation" for the number of locks necessary for DROP > OWNED BY. > What does it mean in this context? relation = table? > > > > I'm confused here a bit as well.  The items being talked about are > tables and indexes, both of which manifest as files on the filesystem. > But not all relations do (e.g., views).  But if this isn't tied to the > filesystem then I would expect that other object types, especially > functions, would require locking as well, but those are decidedly not > relations. Pretty sure this is related to: https://www.postgresql.org/docs/current/explicit-locking.html In other words to locks on data access. > > How do I determine the current value, and change it? > > > https://www.postgresql.org/docs/current/runtime-config.html > > (you already used the SHOW command to determine the current value) > > David J. > -- Adrian Klaver adrian.klaver@aklaver.com