Re: Query a role's permission on a function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Tu <kevintu888(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Query a role's permission on a function
Date: 2021-12-06 21:30:27
Message-ID: 3362016.1638826227@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Kevin Tu <kevintu888(at)gmail(dot)com> writes:
> This sounds easy enough, but I can't quite figure out searching around. Can
> anybody please tell me which catalog table to query to find out whether a
> role/user has execute permission on a function?

I'd suggest using has_function_privilege() instead of trying to duplicate
the logic for yourself.

https://www.postgresql.org/docs/current/functions-info.html

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sivasamy Subramaniam 2021-12-07 03:26:42 Transaction Size in PostgreSQL
Previous Message Chandra Juthuga 2021-12-06 21:29:21 Re: Query a role's permission on a function