Re: Building a database from a flat file - Mailing list pgsql-sql

From Casey T. Deccio
Subject Re: Building a database from a flat file
Date
Msg-id 1109874557.12428.90.camel@boomerang.ran.sandia.gov
Whole thread Raw
In response to Re: Building a database from a flat file  (Sean Davis <sdavis2@mail.nih.gov>)
Responses Re: Building a database from a flat file  (Markus Schaber <schabi@logix-tt.com>)
List pgsql-sql
On Thu, 2005-03-03 at 06:23 -0700, Sean Davis wrote:
> Why not rebuild the entire thing in a separate "build" schema then do
> only the stuff like copying tables inside the transaction block:
> 

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)
that took the most time in the transaction.  However, renaming the
schemas, as suggested in other posts, worked great.

Casey



pgsql-sql by date:

Previous
From: Christopher Browne
Date:
Subject: Re: Postgres performance
Next
From: "Casey T. Deccio"
Date:
Subject: Re: Building a database from a flat file