Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 487976343D1 for ; Wed, 4 Mar 2009 16:38:48 -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 53118-03-3 for ; Wed, 4 Mar 2009 16:38:42 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 9F2B7634086 for ; Wed, 4 Mar 2009 16:38:42 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n24Kcdik006383; Wed, 4 Mar 2009 15:38:39 -0500 (EST) To: Jan-Peter.Seifert@gmx.de cc: Ashish Karalkar , pgsql-admin@postgresql.org Subject: Re: getting 'full' names of functions? In-reply-to: <20090304173815.4090@gmx.net> References: <20090302122020.137490@gmx.net> <49ABE46D.3000501@synechron.com> <20090304173815.4090@gmx.net> Comments: In-reply-to Jan-Peter.Seifert@gmx.de message dated "Wed, 04 Mar 2009 18:38:15 +0100" Date: Wed, 04 Mar 2009 15:38:39 -0500 Message-ID: <6382.1236199119@sss.pgh.pa.us> From: Tom Lane 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/54 X-Sequence-Number: 31554 Jan-Peter.Seifert@gmx.de writes: > 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. regards, tom lane