From: Jan-Peter.Seifert@gmx.de
To: raf <raf@raf.org>
To: pgsql-admin@postgresql.org
Subject: Re: getting 'full' names of functions?
Date: Thu, 05 Mar 2009 17:41:49 +0100
Message-ID: <20090305164149.228110@gmx.net> (raw)
In-Reply-To: <20090305003259.GA24998@raf.org>
References: <20090302122020.137490@gmx.net>
<49ABE46D.3000501@synechron.com>
<5521.1236006477@sss.pgh.pa.us>
<20090304144122.153400@gmx.net>
<20090305003259.GA24998@raf.org>
Hello raf,
> > > Easier is just
> > > select oid::regprocedure from pg_proc where <whatever>
> note that this method doesn't produce a complete function
> signature. the precision and scale of numerics are not
> included in the output. hopefully, that won't matter for
> your needs.
Oh. So functions expecting e.g. numeric(5,2) as argument wouldn't be listed correctly? Is this going to be fixed then? For now all I need is the 'full' function name necessary for GRANT/REVOKE.
I guess this will do for now for 'non-numeric'-functions?:
SELECT DISTINCT p.oid::regprocedure::text FROM pg_catalog.pg_proc p LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace WHERE nspname !~* '^pg_' AND nspname != 'information_schema'
Thank you very much,
Peter
--
Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
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, raf@raf.org
Subject: Re: getting 'full' names of functions?
In-Reply-To: <20090305164149.228110@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