Re: getting 'full' names of functions?

Поиск
Список
Период
Сортировка
От Ashish Karalkar
Тема Re: getting 'full' names of functions?
Дата
Msg-id 49ABE46D.3000501@synechron.com
обсуждение исходный текст
Ответ на getting 'full' names of functions?  ("Jan-Peter Seifert" <Jan-Peter.Seifert@gmx.de>)
Ответы Re: getting 'full' names of functions?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: getting 'full' names of functions?  (Jan-Peter.Seifert@gmx.de)
Список 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 по дате отправления:

Предыдущее
От: "Jan-Peter Seifert"
Дата:
Сообщение: getting 'full' names of functions?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: getting 'full' names of functions?