X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1DE4A476705 for ; Thu, 15 May 2003 11:00:06 -0400 (EDT) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with ESMTP id 22668-04 for ; Thu, 15 May 2003 10:59:35 -0400 (EDT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 5A15747672A for ; Thu, 15 May 2003 10:59:35 -0400 (EDT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 21DDCD618; Thu, 15 May 2003 07:59:40 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 175605C04; Thu, 15 May 2003 07:59:40 -0700 (PDT) Date: Thu, 15 May 2003 07:59:40 -0700 (PDT) From: Stephan Szabo To: Raphael Bauduin Cc: Subject: Re: pg_proc.prosrc -> can I see the function's source? In-Reply-To: <20030515120903.GB10618@raphael> Message-ID: <20030515075820.H60859-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/210 X-Sequence-Number: 8772 On Thu, 15 May 2003, Raphael Bauduin wrote: > 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)? The below is a function in C, so you won't get it even with a pgdump -s (it's one of the foreign key triggers defined in src/backend/utils/adt/ri_triggers.c if I remember location correctly) > proname | prosrc > ----------------------+---------------------- > RI_FKey_noaction_del | RI_FKey_noaction_del