From: ow <oneway_111@yahoo.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore and FK constraints with large dbs
Date: Thu, 13 Nov 2003 15:02:51 -0800 (PST)
Message-ID: <20031113230251.64140.qmail@web21409.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0311132329340.17499-100000@peter.localdomain>
--- 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: oneway_111@yahoo.com, peter_e@gmx.net
Subject: Re: pg_restore and FK constraints with large dbs
In-Reply-To: <20031113230251.64140.qmail@web21409.mail.yahoo.com>
References: <Pine.LNX.4.44.0311132329340.17499-100000@peter.localdomain> <20031113230251.64140.qmail@web21409.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox