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 1p04zV-0002ml-VA for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Nov 2022 18:05:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p04yW-0007zO-Re for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Nov 2022 18:04:56 +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 1p04yW-0007zF-IP for pgsql-hackers@lists.postgresql.org; Tue, 29 Nov 2022 18:04:56 +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 1p04yS-0004bo-LA for pgsql-hackers@lists.postgresql.org; Tue, 29 Nov 2022 18:04:56 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id DE9EC32002D8; Tue, 29 Nov 2022 13:04:48 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 29 Nov 2022 13:04:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1669745088; x=1669831488; bh=S L/iMBkvcNpOqzTbQBCitGQdfZb25z8Ou2Jh03FFcB0=; b=SETYqkzh0oSIwwu1Y 9FTIcU142bwT6HNzaewnbuqKWhPlyoCSyMFO6lZgIjzpO31ILz81BYShBrMjzEsK lzs5Xy/R7BrDb8JQrESpo5e4VRlLEjBem3YXww3Er4+AflF4LUETJhbJ//pB+eeR TPhjksGa5/jL8urQALZPhgYQHBjtjrSCFDCA5sgft+vtzqyq9RVfFkMmaqPegWtB UvSjuycOQrhpqYjLmp7UwL9lGFKuaKGdDKsLgj2GuWaLlP3yscwKd8EFid8+aNNQ UNFoDRcTR66RCQXGlFaL7EMbyyWRq85S1qyQOozGtZPwE1aF1qS30AQTbnnb7WHI EekaQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrtddtgdejlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 29 Nov 2022 13:04:47 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id F2628E98; Tue, 29 Nov 2022 19:04:44 +0100 (CET) Date: Tue, 29 Nov 2022 19:04:44 +0100 From: Alvaro Herrera To: Amit Langote Cc: Ian Lawrence Barwick , Tom Lane , David Rowley , Greg Stark , Julien Rouhaud , PostgreSQL Hackers Subject: Re: ExecRTCheckPerms() and many prunable partitions Message-ID: <20221129180444.i3jaz7l7igel2bd3@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Nov-29, Amit Langote wrote: > Maybe, we should have the following there so that the PlannedStmt's > contents don't point into the Query? > > newperminfo = copyObject(perminfo); Hmm, I suppose if we want a separate RTEPermissionInfo node, we should instead do GetRTEPermissionInfo(rte) followed by AddRTEPermissionInfo(newrte) and avoid the somewhat cowboy-ish coding there. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/