Re: Need help understanding has_function_privilege

From: Joe Conway <mail(at)joeconway(dot)com>
To: Cosimo Simeone <cosimo(dot)simeone(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Need help understanding has_function_privilege
Date: 2025-03-20 13:28:52
Message-ID: 0a5f1785-20ee-4a3a-92b1-7d5d5cc3970f@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/19/25 04:24, Cosimo Simeone wrote:
> Hi!
> I'd need help understanding what i am doing wrong...
>
> Where am I:
> =# \c
> psql (15.8 (Homebrew), server 14.15 (Debian 14.15-1.pgdg120+1))
> You are now connected to database "postgres" as user "postgres".
>
> Init:
> =# create role my_user;
> =# create schema my_schema;
> =# create function my_schema.my_func(p1 text) returns integer as $
> $select 1::integer;$$ language sql;

See:

https://www.postgresql.org/docs/current/sql-createfunction.html#:~:text=execute%20privilege%20is%20granted%20to%20PUBLIC

--
Joe Conway
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2025-03-20 14:04:55 Re: Export operation efficiency in read replica
Previous Message Siraj G 2025-03-20 12:58:32 Re: Export operation efficiency in read replica