| From: | ow <oneway_111(at)yahoo(dot)com> |
|---|---|
| To: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: pg_restore and FK constraints with large dbs |
| Date: | 2003-11-17 04:14:35 |
| Message-ID: | 20031117041435.13499.qmail@web21402.mail.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
--- ow <oneway_111(at)yahoo(dot)com> wrote:
> 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) FK constraint (80M table with FKs against 20K table with
> PKs)
>
> 4.5 hours to check one FK constraint - this is what I meant by bad
> performance.
> I'm looking for a way to suspend FK checks since data is coming from pg_dump
> and, hence, it's clean.
>
No solution? Thanks
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rudi Starcevic | 2003-11-17 04:37:50 | Re: pg_restore and FK constraints with large dbs |
| Previous Message | Fred Moyer | 2003-11-16 20:01:39 | Re: Postrgesql on RedHat 9 |