From: Jeremy Buchmann <jeremy@wellsgaming.com>
To: Ted Rolle <ted@tvlconn.com>
To: 'pgsql-admin' <pgsql-admin@postgresql.org>
Subject: Re: Fast load
Date: Fri, 24 Aug 2001 15:50:51 -0700
Message-ID: <B7AC285A.37B7%jeremy@wellsgaming.com> (raw)
In-Reply-To: <000201c12ce6$a9d826e0$ab00a8c0@ted>
> We have 73 databases, two dozen with hundreds of thousands to millions of
> records, with lengths in the 500-byte range. I'm planning to convert them
> from Btrieve to PostgreSQL.
>
> Of course, I want the highest reasonable speed so that the conversion can be
> completed - say - in a week-end.
>
> My initial take is to create a tab-delimited file and use this as input to
> the \copy command in psql.
>
> Another option might be to feed them directly to the back end.
>
> I'm a C programmer, so writing the necessary programs for the conversion and
> load is not a problem.
>
> Any pointers?
Use \copy. It's very fast at importing tab-delimited text files. Just make
sure that what you export from the old database is very "clean", meaning no
quotes around text fields, no tabs within a field, that sort of thing. 73
is a lot of databases, but it will probably take you more time to actually
type the \copy commands than it will for postgres to copy the data.
-- Jeremy [jeremy@wellsgaming.com]
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jeremy@wellsgaming.com, ted@tvlconn.com
Subject: Re: Fast load
In-Reply-To: <B7AC285A.37B7%jeremy@wellsgaming.com>
References: <000201c12ce6$a9d826e0$ab00a8c0@ted> <B7AC285A.37B7%jeremy@wellsgaming.com>
* 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