X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AAF7C476227 for ; Thu, 15 May 2003 08:09:27 -0400 (EDT) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with ESMTP id 91517-04 for ; Thu, 15 May 2003 08:09:26 -0400 (EDT) Received: from smtp2.mail.be.easynet.net (smtp2.mail.be.easynet.net [212.100.160.76]) by postgresql.org (Postfix) with ESMTP id 392EC475D91 for ; Thu, 15 May 2003 08:09:26 -0400 (EDT) Received: from bidibule.office.be.easynet.net ([212.100.163.150]) by smtp2.mail.be.easynet.net with esmtp (Exim 4.14) id 19GHY9-00036A-3O for pgsql-admin@postgresql.org; Thu, 15 May 2003 14:09:29 +0200 Received: from rb by bidibule.office.be.easynet.net with local (Exim 3.35 #1 (Debian)) id 19GHXk-00031g-00 for ; Thu, 15 May 2003 14:09:04 +0200 Date: Thu, 15 May 2003 14:09:03 +0200 From: Raphael Bauduin To: pgsql-admin@postgresql.org Subject: pg_proc.prosrc -> can I see the function's source? Message-ID: <20030515120903.GB10618@raphael> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *19GHY9-00036A-3O*XClg5z3HPF2* X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/201 X-Sequence-Number: 8763 Hi all, When I look at the entry of a pg_prc_row, I get the prosrc column. Does that represent the id of the source of this function? Can I retrieve it somewhere and take a look at it without pgdump -s (didn't try it yet, but read in the archives that this would be a solution)? Example: select proname,prosrc from pg_proc where proname='RI_FKey_noaction_del'; proname | prosrc ----------------------+---------------------- RI_FKey_noaction_del | RI_FKey_noaction_del (1 row) Thanks for your help! Raph