Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uGjZu-006bGP-Vo for pgsql-general@arkaria.postgresql.org; Sun, 18 May 2025 19:21:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uGjZu-00BT1u-2T for pgsql-general@arkaria.postgresql.org; Sun, 18 May 2025 19:21:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uGjZt-00BT1m-2Y for pgsql-general@lists.postgresql.org; Sun, 18 May 2025 19:21:41 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uGjZp-002XtU-1I for pgsql-general@lists.postgresql.org; Sun, 18 May 2025 19:21:40 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id DAC7811400B0; Sun, 18 May 2025 15:21:34 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Sun, 18 May 2025 15:21:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1747596094; x=1747682494; bh=Vn6txC+lTjDc64dg6YNsZKl2fgOy0zA6+mbM3p5nL+s=; b= RBcWgQSgPCux0NRLpQchPFIZtQG3emBjenWl5UC7KpVOTRyZAZ7tQcPEgwekMa5S V0uguBYr6afFydDmVKS9rplMODMEcSPoX839IMpLsMMnyFmQZLKVzOmvisRpcX3e F8EalxdcoWhD3P2ogyXPIBLsUI37itj8zDOn8pWvu9wWM6KBwFN5QDG+xhRbuwGR z7K8hIy6UvqlZLTnPs5cmzsReHWN3L+edmcLLfr9lnazUZRVJVGVYW7YUb48+2kb YlKiOO7XDNmtGVuYXxfLbvZcFcW7G9yjLtBRBg6J903UvNXJQ6cvWjQ2YOZ6VSue wx7ZZm1MWGESrPC1FZWm4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1747596094; x=1747682494; bh=V n6txC+lTjDc64dg6YNsZKl2fgOy0zA6+mbM3p5nL+s=; b=fFSfFnxevHaQlVUZA rMTgXoOUy1B5Gzr9FdXFZbHEqVQAmlL+8uEdtFA64QEGmWEkt2N/LgFPOQKrap8+ +IRGAXleXNNi+iEz/9gtWV8cLFII0NyFUllKBo2Mg9B6Wo/blt8MPRx82rwXyjah Mf+QXslDq5Z480ijmzJ/lL2c6NPGE9Mj54ve4MCzivIYlMv4SPEXHxJ17AEL/FnM Ab976aWWsGe7/FiY38F9NeNYD4q/7RzGC+qwakImu3Os3ZZAn+j8Fpb4MtOSqrg4 UOK50nwTJqizC0HPPx9r09VdxrBe1ypcQwfHzngt9Pi63LJujypDmgrwRxRSgAIW yg3Eg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdefudelfeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddv jeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeelgeevkeekkeeuiefg tdevieeluefhfedufeetkeejffekjeeujeehgeehgeektdenucffohhmrghinhepphhosh htghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnh gspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprgihuhhs hhhvrghtshgrudekuddtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqgh gvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 18 May 2025 15:21:34 -0400 (EDT) Message-ID: <008d95bc-591b-458e-914c-9f402f5157ec@aklaver.com> Date: Sun, 18 May 2025 12:21:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: =?UTF-8?Q?Re=3A_Clarification_on_REVOKE_ALL_ON_FUNCTION_=E2=80=93_A?= =?UTF-8?Q?re_there_any_privileges_apart_from_EXECUTE=3F?= To: Ayush Vatsa , pgsql-general@lists.postgresql.org References: Content-Language: en-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 5/18/25 12:17, Ayush Vatsa wrote: > Hi Postgres Community, > I had a quick question regarding function-level privileges in PostgreSQL. > We know that |REVOKE EXECUTE ON FUNCTION ...| removes the ability to > call the function. But when we do: > REVOKE ALL ON FUNCTION my_func(args) FROM some_role; > > does this revoke anything other than |EXECUTE|? Are there any other > privileges that apply to functions which get revoked via |REVOKE ALL|? > > I looked through the documentation but couldn’t find a definitive answer > on whether |ALL| includes more than just |EXECUTE| in the context of > functions. See here: https://www.postgresql.org/docs/current/ddl-priv.html Table 5.1. ACL Privilege Abbreviations This is the best way to see what privileges apply to what objects. > > Would appreciate any insights or pointers. > > --------------- > Regards, > Ayush > -- Adrian Klaver adrian.klaver@aklaver.com