Re: Re: pg_dump scripts are no longer ordinary-user friendly - Mailing list pgsql-hackers

From Stephan Szabo
Subject Re: Re: pg_dump scripts are no longer ordinary-user friendly
Date
Msg-id Pine.BSF.4.21.0103051955110.65841-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: Re: pg_dump scripts are no longer ordinary-user friendly  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, 5 Mar 2001, Tom Lane wrote:

> Philip Warner <pjw@rhyme.com.au> writes:
> > At 22:26 5/03/01 -0500, Tom Lane wrote:
> >> Now that you mention it, is it a feature at all?  Or a bug?  ISTM poor
> >> form for a data-only restore to assume it may turn off all pre-existing
> >> triggers.
> 
> > Do you recall any of the history - why was it added in the first place?
> 
> No, I don't recall.  It might be worth digging in the archives.

Foreign key constraints with data following the full constraint definition
if the data was in the wrong order.  

Unfortunately it does allow invalid data to be loaded, but for circular
cases I'm not sure how you can do this safely.  I guess for fk, if all the
data loading was in a single transaction and you did something to override
the normal deferrable-ness of the constraint and forced the constraints to
be deferred, it would check at the end of the full load.  This still
breaks for multiple dump files per table and for other random user
triggers that are unsafe on restore though.





pgsql-hackers by date:

Previous
From: Philip Warner
Date:
Subject: Re: Re: pg_dump scripts are no longer ordinary-user friendly
Next
From: Tom Lane
Date:
Subject: Proposed WAL changes