Re: pg_restore and FK constraints with large dbs - Mailing list pgsql-admin

From ow
Subject Re: pg_restore and FK constraints with large dbs
Date
Msg-id 20031116071749.32670.qmail@web21409.mail.yahoo.com
Whole thread Raw
In response to Re: pg_restore and FK constraints with large dbs  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: pg_restore and FK constraints with large dbs  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-admin
pgSql 7.4.rc2

--- Peter Eisentraut <peter_e@gmx.net> wrote:
> If you you pg_dump and dump schema and data together, then there is some
> magic to temporarily disable foreign key constraints.  Try it out.

Dunno. Don't see any magic so far. In fact, pg_restore appears to use
internally the same SQL to verify that the validity of the FKs as "ALTER TABLE
xxx ADD CONSTRAINT". And it's not any faster either.

Is there a special option that one should specify to suspend FK checks during
pg_restore? Otherwise, pg_restore's performance is ... umm, not very good, to
put it mildly.

Thanks






__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

pgsql-admin by date:

Previous
From: Steve Lane
Date:
Subject: Postrgesql on RedHat 9
Next
From: Ashok Chauhan
Date:
Subject: compare two databases