Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 9909F474E44 for ; Sun, 3 Mar 2002 02:42:54 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id EF614D600; Sat, 2 Mar 2002 23:42:54 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id E4D935BFB; Sat, 2 Mar 2002 23:42:54 -0800 (PST) Date: Sat, 2 Mar 2002 23:42:54 -0800 (PST) From: Stephan Szabo To: Dan Langille Cc: Subject: Re: removing duplicated constraints In-Reply-To: <200203022142.g22LgWk55334@lists.unixathome.org> Message-ID: <20020302233809.V58150-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200203/28 X-Sequence-Number: 3563 > I found the list of duplicate constraints by eyeballing the files I > created using the methods mentioned in previous post (mainly grep and > sort). Then I would search in the original dump file for the the CREATE > CONSTRAINT statement. Using the name found there > (RI_ConstraintTrigger_998199), I did this: > > drop TRIGGER "RI_ConstraintTrigger_998189" on categories; > > Making sense? Well, I'm not sure that you're guaranteed to get the same trigger names after the restore as the ones in the dump file comments. You may have to look in the system table for the actual current trigger name for the triggers with those arguments.