pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
data restore
5+ messages / 2 participants
[nested] [flat]

* data restore
@ 2003-10-10 16:25  Jodi Kanter <jkanter@virginia.edu>
  0 siblings, 0 replies; 5+ messages in thread

From: Jodi Kanter @ 2003-10-10 16:25 UTC (permalink / raw)
  To: pgsql-admin

Are there limits to how much can be restored using the \i switch is 
psql? I have been doing dumps for some time now using copy commands 
instead of inserts. I then go in to psql to run my backup script using \i.
I am now having issues all of a sudden with it hanging.
Maybe I ought to attempt the dump and restore another way?
Thanks
Jodi
-- 

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

 

/ /

/ /

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* data restore
@ 2003-10-10 16:50  Jodi Kanter <jkanter@virginia.edu>
  0 siblings, 1 reply; 5+ messages in thread

From: Jodi Kanter @ 2003-10-10 16:50 UTC (permalink / raw)
  To: pgsql-admin

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?
Thanks in advance for any assistance that might come my way :-)
Jodi
-- 

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

 

/ /

/ /

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: data restore
@ 2003-10-10 17:12  Stephan Szabo <sszabo@megazone.bigpanda.com>
  parent: Jodi Kanter <jkanter@virginia.edu>
  0 siblings, 1 reply; 5+ messages in thread

From: Stephan Szabo @ 2003-10-10 17:12 UTC (permalink / raw)
  To: Jodi Kanter <jkanter@virginia.edu>; +Cc: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: data restore
@ 2003-10-10 17:44  Jodi Kanter <jkanter@virginia.edu>
  parent: Stephan Szabo <sszabo@megazone.bigpanda.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Jodi Kanter @ 2003-10-10 17:44 UTC (permalink / raw)
  To: Stephan Szabo <sszabo@megazone.bigpanda.com>; +Cc: pgsql-admin

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>/

 

/ /

/ /

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: data restore
@ 2003-10-10 18:39  Stephan Szabo <sszabo@megazone.bigpanda.com>
  parent: Jodi Kanter <jkanter@virginia.edu>
  0 siblings, 0 replies; 5+ messages in thread

From: Stephan Szabo @ 2003-10-10 18:39 UTC (permalink / raw)
  To: Jodi Kanter <jkanter@virginia.edu>; +Cc: pgsql-admin

On Fri, 10 Oct 2003, Jodi Kanter wrote:

> 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?

I think if you use one of the custom formats and pg_restore you can alter
the restore order, but I've never done that, so I don't know the details.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2003-10-10 18:39 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-10 16:25 data restore Jodi Kanter <jkanter@virginia.edu>
2003-10-10 16:50 data restore Jodi Kanter <jkanter@virginia.edu>
2003-10-10 17:12 ` Stephan Szabo <sszabo@megazone.bigpanda.com>
2003-10-10 17:44   ` Jodi Kanter <jkanter@virginia.edu>
2003-10-10 18:39     ` Stephan Szabo <sszabo@megazone.bigpanda.com>

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