Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 9CD7A475991 for ; Sat, 2 Mar 2002 14:09:11 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 3A692D5FD; Sat, 2 Mar 2002 11:09:11 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 2C1015BFB; Sat, 2 Mar 2002 11:09:11 -0800 (PST) Date: Sat, 2 Mar 2002 11:09:11 -0800 (PST) From: Stephan Szabo To: Dan Langille Cc: Subject: Re: removing duplicated constraints In-Reply-To: <200203021749.g22HnDk53558@lists.unixathome.org> Message-ID: <20020302110754.K52221-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200203/26 X-Sequence-Number: 3561 On Sat, 2 Mar 2002, Dan Langille wrote: > On 2 Mar 2002 at 10:19, Dan Langille wrote: > > > CREATE CONSTRAINT TRIGGER "" AFTER INSERT OR UPDATE ON "ports" > > FROM "categories" NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROW EXECUTE > > PROCEDURE "RI_FKey_check_ins" ('', 'ports', 'categories', > > 'UNSPECIFIED', 'category_id', 'id'); > > > > CREATE CONSTRAINT TRIGGER "" AFTER INSERT OR UPDATE ON "ports" > > FROM "categories" NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROW EXECUTE > > PROCEDURE "RI_FKey_check_ins" ('', 'ports', 'categories', > > 'UNSPECIFIED', 'category_id', 'id'); > > How is an unnamed trigger deleted? During a dump, I can find information > such as this: The "" is the constraint name given. It also gets a trigger name (see system table pg_trigger) which you can use with DROP TRIGGER (although in the case of the fk constraint triggers you need to double quote the name).