Re: Foreign key slows down copy/insert - Mailing list pgsql-performance

From Joshua D. Drake
Subject Re: Foreign key slows down copy/insert
Date
Msg-id Pine.LNX.4.62.0504181917110.12937@hosting.commandprompt.com
Whole thread Raw
In response to Foreign key slows down copy/insert  (Richard van den Berg <richard.vandenberg@trust-factory.com>)
List pgsql-performance
> Since the database I am working on has many FKs, I would rather not have to
> drop/add them when I am loading large data sets.

You may want to hunt the archives. IIRCC I saw a couple of posts in the
recent months about an update you can do to one of the system tables to disable
the key checks and then re-enable them after your done with the import.

Sincerely,

Joshua D. Drake
>

--
Command Prompt, Inc., Your PostgreSQL solutions company. 503-667-4564
Custom programming, 24x7 support, managed services, and hosting
Open Source Authors: plPHP, pgManage, Co-Authors: plPerlNG
Reliable replication, Mammoth Replicator - http://www.commandprompt.com/



pgsql-performance by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: How to improve db performance with $7K?
Next
From: Michael Fuhr
Date:
Subject: Re: refcurosr vs. setof