Re: Removing the default grant of EXECUTE on functions/procedures to PUBLIC

2024-07-05 Thread Tom Lane
"Tefft, Michael J" writes: > I apologize, that was sloppy. > I was using the acldefault() function with pg_roles, like this: > => select rolname, acldefault('f',oid) from pg_roles where rolname like > 'mjt%' order by 1; Ah, yeah, that always shows the *built in* default privileges for a given o

RE: Removing the default grant of EXECUTE on functions/procedures to PUBLIC

2024-07-05 Thread Tefft, Michael J
2 PM To: Tefft, Michael J Cc: pgsql-general@lists.postgresql.org Subject: Re: Removing the default grant of EXECUTE on functions/procedures to PUBLIC "Tefft, Michael J" writes: > I was checking pg_roles. acl_default to see if my role-level ALTER DEFAULT PRIVILEGES had been effect

Re: Removing the default grant of EXECUTE on functions/procedures to PUBLIC

2024-07-05 Thread Tom Lane
"Tefft, Michael J" writes: > I was checking pg_roles.acl_default to see if my role-level ALTER DEFAULT > PRIVILEGES had been effective. But I see the same content both before and > after the ALTEr. Er, what? There's no column named acl_default in pg_roles, nor any other standard PG view. psql

RE: Removing the default grant of EXECUTE on functions/procedures to PUBLIC

2024-07-05 Thread Tefft, Michael J
be checking instead? Thanks, Mike Tefft From: Tom Lane Sent: Friday, July 5, 2024 10:51 AM To: Tefft, Michael J Cc: pgsql-general@lists.postgresql.org Subject: Re: Removing the default grant of EXECUTE on functions/procedures to PUBLIC "Tefft, Michael J" writes: > I am trying t

Re: Removing the default grant of EXECUTE on functions/procedures to PUBLIC

2024-07-05 Thread Tom Lane
"Tefft, Michael J" writes: > I am trying to remove the default grant of EXECUTE on all > functions/procedures to PUBLIC. >> From my reading, there is no straightforward way to do this. For example, > ALTER DEFAULT PRIVILEGES REVOKE EXECUTE ON FUNCTIONS FROM PUBLIC; > Does not apply this across th

Re: Removing the default grant of EXECUTE on functions/procedures to PUBLIC

2024-07-05 Thread David G. Johnston
On Friday, July 5, 2024, Tefft, Michael J wrote: > I am trying to remove the default grant of EXECUTE on all > functions/procedures to PUBLIC. > > From my reading, there is no straightforward way to do this. For example, > > ALTER DEFAULT PRIVILEGES REVOKE EXECUTE ON FUNCTIONS FROM PUBLIC; > > Do

Removing the default grant of EXECUTE on functions/procedures to PUBLIC

2024-07-05 Thread Tefft, Michael J
I am trying to remove the default grant of EXECUTE on all functions/procedures to PUBLIC. >From my reading, there is no straightforward way to do this. For example, ALTER DEFAULT PRIVILEGES REVOKE EXECUTE ON FUNCTIONS FROM PUBLIC; Does not apply this across the entire cluster (or database) but onl