Re: Building a database from a flat file

From: "Casey T(dot) Deccio" <ctdecci(at)sandia(dot)gov>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Building a database from a flat file
Date: 2005-03-03 18:29:17
Message-ID: 1109874557.12428.90.camel@boomerang.ran.sandia.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Casey T. Deccio 2005-03-03 18:37:08 Re: Building a database from a flat file
Previous Message Christopher Browne 2005-03-03 17:39:13 Re: Postgres performance