From: Casey T. Deccio <ctdecci@sandia.gov>
To: pgsql-sql@postgresql.org
Subject: Re: Building a database from a flat file
Date: Thu, 03 Mar 2005 10:29:17 -0800
Message-ID: <1109874557.12428.90.camel@boomerang.ran.sandia.gov> (raw)
In-Reply-To: <8014dca0db521733863bb7967ce4be95@mail.nih.gov>
References: <1109808921.12430.75.camel@boomerang.ran.sandia.gov>
<8014dca0db521733863bb7967ce4be95@mail.nih.gov>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ctdecci@sandia.gov
Subject: Re: Building a database from a flat file
In-Reply-To: <1109874557.12428.90.camel@boomerang.ran.sandia.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox