Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 79EBE63473A for ; Thu, 5 Mar 2009 14:16:04 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 11374-03 for ; Thu, 5 Mar 2009 14:16:01 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.postgresql.org (Postfix) with SMTP id 2A5FA634031 for ; Thu, 5 Mar 2009 12:49:42 -0400 (AST) Received: (qmail 24263 invoked by uid 0); 5 Mar 2009 16:23:01 -0000 Received: from 192.124.237.8 by www183.gmx.net with HTTP; Thu, 05 Mar 2009 17:23:01 +0100 (CET) Cc: pgsql-admin@postgresql.org, ashishka@synechron.com Content-Type: text/plain; charset="iso-8859-1" Date: Thu, 05 Mar 2009 17:23:01 +0100 From: Jan-Peter.Seifert@gmx.de In-Reply-To: <6382.1236199119@sss.pgh.pa.us> Message-ID: <20090305162301.81330@gmx.net> MIME-Version: 1.0 References: <20090302122020.137490@gmx.net> <49ABE46D.3000501@synechron.com> <20090304173815.4090@gmx.net> <6382.1236199119@sss.pgh.pa.us> Subject: Re: getting 'full' names of functions? To: Tom Lane X-Authenticated: #955937 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX18cJzMfSMccu+8knTC9aTZny3MJU+s/7jY4TjAayY ocM6kWltX7l/eKgzoq7V8lIc9S5fLWw9LFEA== Content-Transfer-Encoding: 8bit X-GMX-UID: NojKOa1+ZCEEV0/sa2whtAF4IGhpZUaV X-FuHaFi: 0.6899999999999999 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/77 X-Sequence-Number: 31577 Hello Tom, > > I combined your suggestions into this query I'll be using for now: > > > SELECT DISTINCT n.nspname || '.' || p.oid::regprocedure::text FROM > > This is flat *wrong*, as you'll soon find if you are working with > functions in more than one schema. regprocedure already puts a > schema qualification on the name if one is needed. You are right. I was more concerned with getting the same number of functions as in pgAdmin III. There were two 'missing' because of pg_function_is_visible: public.plpgsql_call_handler() public.plpgsql_validator(oid) They are obviously relicts from an earlier PostgreSQL-version. Could they cause problems if left be although the new versions are now in pg_catalog which obviously is being searched before all other schemata? But why is regprocedure not just addding the schema to all of the functions then? Thank you very much, Peter -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01