pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan-Peter.Seifert@gmx.de
To: Ashish Karalkar <ashishka@synechron.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: getting 'full' names of functions?
Date: Wed, 04 Mar 2009 18:38:15 +0100
Message-ID: <20090304173815.4090@gmx.net> (raw)
In-Reply-To: <49ABE46D.3000501@synechron.com>
References: <20090302122020.137490@gmx.net>
	<49ABE46D.3000501@synechron.com>

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



view thread (10+ messages)  latest in thread

Message-ID: <20090304173815.4090@gmx.net>
Permalink:  ../20090304173815.4090@gmx.net/
Also on:    postgresql.org/message-id/20090304173815.4090@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: Jan-Peter.Seifert@gmx.de, ashishka@synechron.com
  Subject: Re: getting 'full' names of functions?
  In-Reply-To: <20090304173815.4090@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox