Jan-Peter Seifert wrote:
Hello,

before I reinvent the wheel I'd like to know whether there's a shortcut for 
getting the 'full' name (incl. argtypes) of the functions within a database in 
order to REVOKE priviliges on them given to certain users.
I don't see anything in the docs: 
http://www.postgresql.org/docs/8.3/interactive/functions-info.html#FUNCTIONS-INFO-CATALOG-TABLE

Obviously you can't just use the specific_name from 
information_schema.routine_privileges for this.

Any help is appreciated.

Thank you very much,

Peter
May be this will help you:


SELECT n.nspname||'.'||p.proname||'('||pg_catalog.oidvectortypes(p.proargtypes) ||')'
FROM pg_catalog.pg_proc p
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace
WHERE p.prorettype <> 'pg_catalog.cstring'::pg_catalog.regtype
AND p.proargtypes[0] <> 'pg_catalog.cstring'::pg_catalog.regtype
AND NOT p.proisagg
AND pg_catalog.pg_function_is_visible(p.oid)
AND nspname != 'pg_catalog'


--Ashish

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Reply via email to