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 1sPnZW-006NA0-0b for pgsql-general@arkaria.postgresql.org; Fri, 05 Jul 2024 18:22:14 +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 1sPnZT-00CenI-V8 for pgsql-general@arkaria.postgresql.org; Fri, 05 Jul 2024 18:22:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sPnZT-00Cem1-Ka for pgsql-general@lists.postgresql.org; Fri, 05 Jul 2024 18:22:12 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sPnZR-000Ze0-Qx for pgsql-general@lists.postgresql.org; Fri, 05 Jul 2024 18:22:11 +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 465IM896326042; Fri, 5 Jul 2024 14:22:09 -0400 From: Tom Lane To: "Tefft, Michael J" cc: "pgsql-general@lists.postgresql.org" Subject: Re: Removing the default grant of EXECUTE on functions/procedures to PUBLIC In-reply-to: References: <201663.1720191061@sss.pgh.pa.us> Comments: In-reply-to "Tefft, Michael J" message dated "Fri, 05 Jul 2024 17:42:35 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <326040.1720203728.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 05 Jul 2024 14:22:08 -0400 Message-ID: <326041.1720203728@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Tefft, Michael J" writes: > I was checking pg_roles.acl_default to see if my role-level ALTER DEFAUL= T PRIVILEGES had been effective. But I see the same content both before an= d after the ALTEr. Er, what? There's no column named acl_default in pg_roles, nor any other standard PG view. psql's "\ddp" command is the most usual way to examine current defaults: regression=3D# create user joe; CREATE ROLE regression=3D# ALTER DEFAULT PRIVILEGES FOR USER joe REVOKE EXECUTE ON FUN= CTIONS FROM public; ALTER DEFAULT PRIVILEGES regression=3D# \ddp Default access privileges Owner | Schema | Type | Access privileges = -------+--------+----------+------------------- joe | | function | joe=3DX/joe (1 row) regards, tom lane