Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 21C4A476A44; Mon, 4 Mar 2002 11:26:13 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 106A9D601; Mon, 4 Mar 2002 08:26:18 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 05E395BFB; Mon, 4 Mar 2002 08:26:18 -0800 (PST) Date: Mon, 4 Mar 2002 08:26:17 -0800 (PST) From: Stephan Szabo To: Raymond Chui Cc: , Subject: Re: Which trigger execute which function? In-Reply-To: <3C7CFBEF.58125413@noaa.gov> Message-ID: <20020304082533.C76685-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200203/42 X-Sequence-Number: 3577 On Wed, 27 Feb 2002, Raymond Chui wrote: > Previous DBA create a lot of triggers and functions without > documentation like: > > CREATE TRIGGER trigger_name [BEFORE | AFTER] event ON table_name > FOR EACH ROW EXECUTE PROCEDURE function_name(); > > Now he is gone. I couldn't find his PL/PGSQL source codes! > > I can do > > SELECT * FROM pg_proc; > SELECT * FROM pg_trigger; select * from pg_trigger,pg_proc where tgfoid=pg_proc.oid;