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

From Jan-Peter.Seifert@gmx.de
Subject Re: getting 'full' names of functions?
Date
Msg-id 20090304173815.4090@gmx.net
Whole thread Raw
In response to Re: getting 'full' names of functions?  (Ashish Karalkar <ashishka@synechron.com>)
Responses Re: getting 'full' names of functions?
List pgsql-admin
Hello Ashish, Hello Tom,

> > 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 combined your suggestions into this query I'll be using for now:

SELECT DISTINCT n.nspname || '.' || p.oid::regprocedure::text FROM pg_catalog.pg_proc p LEFT JOIN
pg_catalog.pg_namespacen ON n.oid = p.pronamespace WHERE pg_catalog.pg_function_is_visible(p.oid) AND nspname !~*
'^pg_'AND nspname != 'information_schema'; 

Thank you very much again,

Peter
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01

pgsql-admin by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Postgressql backup/restore question
Next
From: Simon Riggs
Date:
Subject: Re: standby waiting for what?