Re: getting 'full' names of functions? - Mailing list pgsql-admin

From Ashish Karalkar
Subject Re: getting 'full' names of functions?
Date
Msg-id 49ABE46D.3000501@synechron.com
Whole thread Raw
In response to getting 'full' names of functions?  ("Jan-Peter Seifert" <Jan-Peter.Seifert@gmx.de>)
Responses Re: getting 'full' names of functions?
Re: getting 'full' names of functions?
List pgsql-admin
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)
ofthe 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

pgsql-admin by date:

Previous
From: "Jan-Peter Seifert"
Date:
Subject: getting 'full' names of functions?
Next
From: Tom Lane
Date:
Subject: Re: getting 'full' names of functions?