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 93AADD1C4E1 for ; Mon, 11 Aug 2003 13:48:37 +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 90714-10 for ; Mon, 11 Aug 2003 10:47:11 -0300 (ADT) Received: from megazone.bigpanda.com (45.mufb.snfc.sffca01r18.dsl.att.net [12.103.249.45]) by svr1.postgresql.org (Postfix) with ESMTP id D98DED1C4B9 for ; Mon, 11 Aug 2003 10:48:26 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 27389D692; Mon, 11 Aug 2003 06:48:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 1AC085C0B; Mon, 11 Aug 2003 06:48:31 -0700 (PDT) Date: Mon, 11 Aug 2003 06:48:31 -0700 (PDT) From: Stephan Szabo To: BenLaKnet Cc: Subject: Re: [pg-sql] - Problem with duplicate table (PostgreSQL 7.2.3 In-Reply-To: <3F379DA8.7040501@icqmail.com> Message-ID: <20030811064449.D72304-100000@megazone.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/101 X-Sequence-Number: 14717 On Mon, 11 Aug 2003, BenLaKnet wrote: > we make a dump before ... and with a product pgmanager (ems tech) we do > not show any foreign keys. That's possible, I'd have guessed that it should be dumping the triggers as CREATE CONSTRAINT TRIGGER commands in the dump. > But I think all of triggers of referenced table are not deleted. If you can make a repeatable test case (a simpler one than your full data set) that'd be helpful to look at. One possibility is that older versions (7.1 and earlier) had a bug that would cause the constraint triggers to be reloaded without the information of which table it was associated with, but I don't see how that'd apply here. > We recreate the schemas ... and now it's running. > > How is it possible to identify Triggers with no referenced tables ? Generally you'd need to look through pg_trigger manually looking for something that doesn't match up correctly against the constraints you expect to have.