Re: Query a role's permission on a function

From: Chandra Juthuga <shekharjchandra(at)hotmail(dot)co(dot)uk>
To: Kevin Tu <kevintu888(at)gmail(dot)com>, 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:29:21
Message-ID: AS8P194MB1639A936BC8EE90BC6DD340AE56D9@AS8P194MB1639.EURP194.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Try this :-

SELECT proacl
FROM pg_proc
WHERE proname='<Name of function>';

Regards
Chandra

________________________________
From: Kevin Tu <kevintu888(at)gmail(dot)com>
Sent: 06 December 2021 20:34
To: pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Query a role's permission on a function

Hi team,

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?

Thanks in advance,

Kevin Tu

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2021-12-06 21:30:27 Re: Query a role's permission on a function
Previous Message Kevin Tu 2021-12-06 20:34:42 Query a role's permission on a function