X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CAF075346A for ; Mon, 18 Apr 2005 23:25:46 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93489-06 for ; Tue, 19 Apr 2005 02:25:38 +0000 (GMT) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by svr1.postgresql.org (Postfix) with ESMTP id BEC6853A49 for ; Mon, 18 Apr 2005 23:25:33 -0300 (ADT) Received: from hosting.commandprompt.com (hosting.commandprompt.com [192.168.1.101]) by hosting.commandprompt.com (8.12.8/8.12.8) with ESMTP id j3J2KPmb013719; Mon, 18 Apr 2005 19:20:25 -0700 Date: Mon, 18 Apr 2005 19:20:25 -0700 (PDT) From: "Joshua D. Drake" To: Richard van den Berg Cc: pgsql-performance@postgresql.org Subject: Re: Foreign key slows down copy/insert In-Reply-To: <425E5B38.6020407@trust-factory.com> Message-ID: References: <425E5B38.6020407@trust-factory.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/446 X-Sequence-Number: 11843 > 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/