X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3562C55EAE for ; Thu, 3 Mar 2005 20:22:06 +0000 (GMT) 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 83804-08 for ; Thu, 3 Mar 2005 20:21:56 +0000 (GMT) Received: from mail.logix-tt.com (wallaby.dingens.org [212.75.36.180]) by svr1.postgresql.org (Postfix) with ESMTP id 65CAF54FDF for ; Thu, 3 Mar 2005 20:21:55 +0000 (GMT) Received: from kingfisher.intern.logi-track.com (pD95DCDF2.dip0.t-ipconnect.de [217.93.205.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 68322A859A; Thu, 3 Mar 2005 20:21:59 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logi-track.com (Postfix) with ESMTP id 230A7AB3D8; Thu, 3 Mar 2005 21:21:50 +0100 (CET) Message-ID: <422771DD.9040409@logix-tt.com> Date: Thu, 03 Mar 2005 21:21:49 +0100 From: Markus Schaber User-Agent: Mozilla Thunderbird 1.0 (X11/20050116) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: "Casey T. Deccio" Cc: pgsql-sql@postgresql.org Subject: Re: Building a database from a flat file References: <1109808921.12430.75.camel@boomerang.ran.sandia.gov> <8014dca0db521733863bb7967ce4be95@mail.nih.gov> <1109874557.12428.90.camel@boomerang.ran.sandia.gov> In-Reply-To: <1109874557.12428.90.camel@boomerang.ran.sandia.gov> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/53 X-Sequence-Number: 20532 Hi, Casey, Casey T. Deccio schrieb: > Building everything in the separate "build" schema works great, but it > is the DELETE (TRUNCATE won't work when foreign keys point to the table) Just as an additional info: You could temporarily drop the foreing key constraints, run TRUNCATE, and recreate the constraints. Markus -- Markus Schaber | Dipl. Informatiker | Software Development GIS Fight against software patents in EU! http://ffii.org/ http://nosoftwarepatents.org/