docs(pg_net): show effective execute privileges in check query

This commit is contained in:
peekknuf committed 2026-10-02 12:55:12 +02:00
1 parent 8ff36ddfd2
commit eefdb6ad65
1 file changed
+5 -1
@@ -462,7 +462,11 @@ To see your `pg_net` version and the privileges on its functions, run:
```sql
select extversion from pg_extension where extname = 'pg_net';
select p.proname, p.prosecdef as security_definer, p.proacl
select
p.proname,
p.prosecdef as security_definer,
has_function_privilege('anon', p.oid, 'execute') as anon_can_execute,
has_function_privilege('authenticated', p.oid, 'execute') as authenticated_can_execute
from
pg_proc as p
join pg_namespace as n on n.oid = p.pronamespace