Re: AW: Proposal: More flexible backup/restore via pg_dump

From: "Stephan Szabo" <sszabo(at)kick(dot)com>
To: "Philip Warner" <pjw(at)rhyme(dot)com(dot)au>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: AW: Proposal: More flexible backup/restore via pg_dump
Date: 2000-06-28 19:06:33
Message-ID: 008e01bfe134$00af2310$0c64010a@kick.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message pgsql-hackers 2000-06-28 19:25:41 Re: 7.0.2 on Solaris
Previous Message Bruce Momjian 2000-06-28 18:46:13 Re: LC_MESSAGES and BSD/OS