Re: AW: Proposal: More flexible backup/restore via pg_dump - Mailing list pgsql-hackers

From Stephan Szabo
Subject Re: AW: Proposal: More flexible backup/restore via pg_dump
Date
Msg-id 008e01bfe134$00af2310$0c64010a@kick.com
Whole thread Raw
In response to Re: AW: Proposal: More flexible backup/restore via pg_dump  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: AW: Proposal: More flexible backup/restore via pg_dump
List pgsql-hackers
> At 08:48 28/06/00 +1000, Giles Lean wrote:
> >Otherwise there are "chicken and egg" problems where two tables have
> >mutual RI constraints.  Even at the tuple level two tuples can be
> >mutually dependent.
>
> Absolutely. And AFAICT, these happen with pg_dump.

This will happen for check constraints, but not for foreign key
constraints...
It actually adds the fk constraints later with CREATE CONSTRAINT TRIGGER
after the data dump is finished. And, if you do separate schema and data
dumps, the wierd statements at the top and bottom of the data dump turn
off triggers and then turn them on again (in the most painful way possible).
However those cases do not actually guarantee the validity of the data in
between.



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: LC_MESSAGES and BSD/OS
Next
From: pgsql-hackers@thewrittenword.com
Date:
Subject: Re: 7.0.2 on Solaris