X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id E1B8ED1C9DD for ; Thu, 31 Jul 2003 19:18:50 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 73561-04 for ; Thu, 31 Jul 2003 16:17:46 -0300 (ADT) Received: from eddings.acpub.duke.edu (eddings.acpub.duke.edu [152.3.233.76]) by svr1.postgresql.org (Postfix) with ESMTP id E09B4D1C9D8 for ; Thu, 31 Jul 2003 16:18:48 -0300 (ADT) Received: from pandorina.biology.duke.edu (pandorina.biology.duke.edu [152.3.11.26]) by eddings.acpub.duke.edu (8.12.9/8.12.9/Duke-5.0.0) with ESMTP id h6VJInu9012544; Thu, 31 Jul 2003 15:18:49 -0400 (EDT) Subject: RI_ConstraintTrigger_11264756 From: Charles Hauser To: PSQL_list Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-9.7x.1) Date: 31 Jul 2003 15:18:49 -0400 Message-Id: <1059679130.20194.6.camel@pandorina.biology.duke.edu> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/489 X-Sequence-Number: 14603 All, I have inherited a table (below) with a RI trigger. I believe this table was created where both clone_id & blastx_id are FKs w/ stipulation 'ON DELETE CASCADE'. My question is, is this specified in the trigger: RI_ConstraintTrigger_11264756? If so how would I learn the content of the trigger knowing just the trigger id (11264756)? I have not seen a 'decoding' of triggers using pgsql. regards, Charles CREATE TABLE clone_blastx( clone_id INTEGER NOT NULL REFERENCES clone(clone_id) ON DELETE CASCADE, blastx_id INTEGER NOT NULL REFERENCES blastx(blastx_id) ON DELETE CASCADE, UNIQUE(clone_id,blastx_id) ); Column | Type | Modifiers -----------+---------+----------- clone_id | integer | contig_id | integer | Indexes: clone_contig_clone_id_key unique btree (clone_id, contig_id), clone_id_clone_contig_key btree (clone_id), contig_id_clone_contig_key btree (contig_id) Triggers: RI_ConstraintTrigger_11264756