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: Fri, 14 Nov 2003 08:21:46 -0800 (PST)
Message-ID: <20031114162146.44040.qmail@web21402.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0311140043230.17499-100000@peter.localdomain>
--- 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.
> Perhaps you can adopt the statements to your particular restoration method
> as well, if it turns out necessary.
>
No longer have the db to extract data and schema together (have only data
extracts), but I'll try later.
However, if FK constraints are temporarily disabled in pg_restore, why is it
necessary to arrage the statimements in the order that satisfies FK
constraints? One could be doing this for days ...
Wouldn't be simpler for pg_restore to do the following:
1) create table structures only (no indexes or constraints)
2) create indexes
3) create constraints
This way, there's no need to rearrange the order of imports.
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: <20031114162146.44040.qmail@web21402.mail.yahoo.com>
References: <Pine.LNX.4.44.0311140043230.17499-100000@peter.localdomain> <20031114162146.44040.qmail@web21402.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