X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 095A7D1B55D for ; Fri, 10 Oct 2003 17:13:21 +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 56003-07 for ; Fri, 10 Oct 2003 14:12:35 -0300 (ADT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 2B363D1B53B for ; Fri, 10 Oct 2003 14:12:34 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 1D63934F0C; Fri, 10 Oct 2003 10:12:34 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 1BFE434DBC; Fri, 10 Oct 2003 10:12:34 -0700 (PDT) Date: Fri, 10 Oct 2003 10:12:34 -0700 (PDT) From: Stephan Szabo To: Jodi Kanter Cc: Postgres Admin List Subject: Re: data restore In-Reply-To: <3F86E33F.2000500@virginia.edu> Message-ID: <20031010101059.S6614@megazone.bigpanda.com> References: <3F86E33F.2000500@virginia.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/122 X-Sequence-Number: 10683 On Fri, 10 Oct 2003, Jodi Kanter wrote: > Ok. sorry to confuse everyone...I got my restore to fun to completion so > apparently my question about running restores in psql and the ordering > of the data are not relevant. > I do, however, have one other question I'd like to pose. > I am getting serveral ref integrity errors which state that a FK value > in one table does not exist in its parent table. However, when I go to > the database to confirm this I can find no data that violates the > constraint. Could the error be pointing to something less obvious? Hmm, two possibilities I can think off the top of my head are if the fk values are being inserted and erroring and the pk rows are being done after (which would make a later check look like this) or if there's any inheritance involved (where a plain select will show child rows that don't currently participate in the foreign key constraint).