Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5542264FCF3 for ; Tue, 9 Sep 2008 19:04:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 97951-08 for ; Tue, 9 Sep 2008 19:04:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 37FD264FCC4 for ; Tue, 9 Sep 2008 19:04:28 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-66-230.bk5-dsl.surnet.cl [200.126.66.230]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m89M7hMa024763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Sep 2008 15:07:45 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 54C9D47CA7; Tue, 9 Sep 2008 18:04:21 -0400 (CLT) Date: Tue, 9 Sep 2008 18:04:21 -0400 From: Alvaro Herrera To: Saii Cc: pgsql-admin@postgresql.org Subject: Re: Source of User Defined functions. Message-ID: <20080909220421.GG4223@alvh.no-ip.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Tue, 09 Sep 2008 15:07:46 -0700 (PDT) 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: 200809/73 X-Sequence-Number: 30166 Saii escribió: > Hello, > > I have a questions regarding the location of source code of user defined > functions in Postgres. I used the following query to get all function names > but I > do not see the source code of the user defined functions. In the 'prosrc' > column, data is available for trigger functions only. Is there any other > table/column where function source code can be found? prosrc is source for all plpgsql functions (and others). If you have C functions, you cannot see the code because all we know is a shared library to load and function name to call. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.