Re: getting 'full' names of functions?

From: Jan-Peter(dot)Seifert(at)gmx(dot)de
To: Ashish Karalkar <ashishka(at)synechron(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: getting 'full' names of functions?
Date: 2009-03-04 17:38:15
Message-ID: 20090304173815.4090@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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_namespace n 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ray Stell 2009-03-04 20:06:12 standby waiting for what?
Previous Message Carol Walter 2009-03-04 15:05:35 Re: Database in use?