pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jodi Kanter <jkanter@virginia.edu>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: data restore
Date: Fri, 10 Oct 2003 13:44:31 -0400
Message-ID: <3F86EFFF.4020006@virginia.edu> (raw)
In-Reply-To: <20031010101059.S6614@megazone.bigpanda.com>
References: <3F86E33F.2000500@virginia.edu>
	<20031010101059.S6614@megazone.bigpanda.com>

It appears that some of these errors are due to the parent table being 
populated after the child table. Can I control the order of the copy 
statements in my script when I run the pg_dump?

Stephan Szabo wrote:

>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).
>  
>

-- 

/_______________________________
//Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu <mailto:jkanter@virginia.edu>/

 

/ /

/ /

view thread (5+ messages)  latest in thread

Message-ID: <3F86EFFF.4020006@virginia.edu>
Permalink:  ../3F86EFFF.4020006@virginia.edu/
Also on:    postgresql.org/message-id/3F86EFFF.4020006@virginia.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jkanter@virginia.edu, sszabo@megazone.bigpanda.com
  Subject: Re: data restore
  In-Reply-To: <3F86EFFF.4020006@virginia.edu>
  References: <3F86E33F.2000500@virginia.edu> <20031010101059.S6614@megazone.bigpanda.com> <3F86EFFF.4020006@virginia.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox