bugfix: Change permissions for stored procedures
Stored procedures, introduced in Postgres 11, are also stored in pg_proc
.
Currently, we have a bug: we're attempting to run ALTER FUNCTION both
for functions and procedures. For the latter, it should be ALTER PROCEDURE.