From: ow <oneway_111@yahoo.com>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore and FK constraints with large dbs
Date: Mon, 17 Nov 2003 13:46:31 -0800 (PST)
Message-ID: <20031117214632.54492.qmail@web21404.mail.yahoo.com> (raw)
In-Reply-To: <20031117130034.M3748@megazone.bigpanda.com>
--- Stephan Szabo <sszabo@megazone.bigpanda.com> wrote:
>
> I assume you're also not modifying the pktable rows (since that would
> access the fk table based solely on the fk).
I do modify the fk table: inserts and updates (but pk is never updated). Also
do not delete records.
> Does the multi-field index start with fk or some other field?
Some other field.
In general, even if I put that additional index and somehow cut down FK
verification time for 1 constraint to, say, 30 min, does that mean that the
problem is solved? Tomorrow, someone may come with 800M fk table against 200K
pk table, or he may have 10 FK constraints like this, etc. How's he going to
restore db in production environment when there's a problem and time is factor?
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, sszabo@megazone.bigpanda.com
Subject: Re: pg_restore and FK constraints with large dbs
In-Reply-To: <20031117214632.54492.qmail@web21404.mail.yahoo.com>
References: <20031117130034.M3748@megazone.bigpanda.com> <20031117214632.54492.qmail@web21404.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