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 20031113230251.64140.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
List pgsql-admin
--- Peter Eisentraut <peter_e@gmx.net> wrote:
> ow writes:
>
> > 1) dump the data only, create the table with all indexes and constraints
> (from
> > script that has nothing to do with pg_restore), import the data. The import
> > part was running for hours (14+) with no end in sight. Had to kill it.
>
> Dump the data and the schema and it will do it in the right order.

Can you clarify how this would be better than the second option I described?
Unless pg_restore can somehow create FK constraints differently (and more
efficiently) than using "ALTER TABLE xxx ADD CONSTRAINT", I do not see how this
would help.

Thanks






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

pgsql-admin by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_restore and FK constraints with large dbs
Next
From: Peter Eisentraut
Date:
Subject: Re: pg_restore and FK constraints with large dbs