From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: ow <oneway_111@yahoo.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore and FK constraints with large dbs
Date: Sun, 16 Nov 2003 10:20:41 -0800 (PST)
Message-ID: <20031116101702.Q64286@megazone.bigpanda.com> (raw)
In-Reply-To: <20031116164544.72117.qmail@web21405.mail.yahoo.com>
References: <20031116164544.72117.qmail@web21405.mail.yahoo.com>
On Sun, 16 Nov 2003, ow wrote:
> --- Peter EiEisentrautpeter_e@gmgmxet> wrote:
> >
> > Read again. No one was talking of pg_restore.
>
> Perhaps I should clarify.
>
> First, I ran pg_dump to extract schema and data *together*. Then I ran
> pg_restore to restore the db. It took about 1 hour to create tables and copy
> the data, then about 40 min to create indexes, then pg_restore spent 4.5 hours
> checking one (1) FKFKonstraint (80M table with FKFKsgainst 20K table with PKPKs
>
> 4.5 hours to check one FKFKonstraint - this is want I meant by bad performance.
> I'm looking for a way to suspend FKFKhecks since data is coming from pg_dump
> and, hence, it's clean.
Only assuming that no changes were made between dump and restore. This
could be changes to schema or data done manually, but it could also be a
locale or possibly encoding change if you have any textual foreign keys.
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: sszabo@megazone.bigpanda.com, oneway_111@yahoo.com, peter_e@gmx.net
Subject: Re: pg_restore and FK constraints with large dbs
In-Reply-To: <20031116101702.Q64286@megazone.bigpanda.com>
References: <20031116164544.72117.qmail@web21405.mail.yahoo.com> <20031116101702.Q64286@megazone.bigpanda.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