Re: [GENERAL] 7.4Beta - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: [GENERAL] 7.4Beta
Date
Msg-id 25bd01c362f8$80842060$2800a8c0@mars
Whole thread Raw
In response to Re: [GENERAL] 7.4Beta  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-hackers
> We've talked about stuff like that in the past, but we seem to generally
> get stuck about how to specify it.  If we add it to the alter table add as
> an option then we're generating statements that are almost like a standard
> sql statement, but not quite, and some people didn't like that. A set
> option that only affected ALTER TABLE ADD CONSTRAINT wouldn't be too bad,
> but I'd be worried about making it apply to the normal checks as well
> (which I believe was suggested last time this came up).  In any case,
> making the full checks faster for when you really do care isn't a bad
> plan. :)

How about having an 'i'm restoring' SET var:

SET data_restore = true;

Which means (among other things) that FK's aren't checked?

Chris



pgsql-hackers by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Re: [GENERAL] 7.4Beta
Next
From: Andreas Pflug
Date:
Subject: Re: [GENERAL] 7.4Beta