Re: pg_restore and create FK without verification check - Mailing list pgsql-hackers

From ow
Subject Re: pg_restore and create FK without verification check
Date
Msg-id 20031126170906.14123.qmail@web21401.mail.yahoo.com
Whole thread Raw
In response to Re: pg_restore and create FK without verification check  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_restore and create FK without verification check  (Greg Stark <gsstark@mit.edu>)
Re: pg_restore and create FK without verification check  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: pg_restore and create FK without verification check  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pg_restore and create FK without verification check  (Jan Wieck <JanWieck@Yahoo.com>)
List pgsql-hackers
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Quite honestly, I think they should check their foreign keys.

Generally speaking, I agree. The problem is that verification of FK
constraint(s) may take too long, depending on the size of the db and other
conditions. In my case, on test data, it takes about 1 hour to create tables
and copy the data, then about 40 min to create indexes, then 4.5 hours to
create one (1) FK constraint. In production, we'll have 10-100x more data than
we have for testing.
If we have a problem in production, the time necessary to restore the db is
simply going to kill us.

> People might be more interested in debating this topic with you if we
> hadn't discussed it at length just a couple months back.  There wasn't
> consensus then that we had to offer an escape hatch, and you've not
> offered any argument that wasn't made before.

I'm simply presenting a problem for which I currently do not see any solution
(it's very important for us to be able to restore db within a reasonable amount
of time). If there's no solution and none is planned, then we cannot use pgsql,
can we?

Thanks






__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


pgsql-hackers by date:

Previous
From: Jonathan Gardner
Date:
Subject: Materialized views proposal
Next
From: Neil Conway
Date:
Subject: building outside source tree