Re: [GENERAL] equivalent of sqlload? - Mailing list pgsql-general

From Michael A. Koerber
Subject Re: [GENERAL] equivalent of sqlload?
Date
Msg-id 199811251857.NAA11205@ll.mit.edu
Whole thread Raw
In response to Re: [GENERAL] equivalent of sqlload?  (Herouth Maoz <herouth@oumail.openu.ac.il>)
Responses Re: [GENERAL] equivalent of sqlload?
List pgsql-general
I am running v6.3.2 under Linux and have found that the "copy" command
works only for small amounts of data.  When trying to "copy" several
thousand records I notice that system RAM and swap space continue to get
eaten until there is no further memory available.  "psql" then fails.
What remains is a .../pgdata/base/XYZ file system with the table being
copied into.  That table may be several (tens, hundreds) of Meg in size,
but a "psql -d XYS -c 'select count(*) table'" will only return a zero
count.

Now...I have broken the "copy" process down into smaller chunks and make
multiple calls to "copy".  I have a total of about 5.4 million records and
the job isn't done yet...my Pentium 433 has been working on this copy for
over 24 hours.

I don't know if there are any changes that can be made to speed this type
of process up, but this is definitely a black-mark.

mike

Dr Michael A. Koerber
MIT/Lincoln Laboratory
781-981-3250

On Wed, 25 Nov 1998, Herouth Maoz wrote:

> At 16:45 +0200 on 25/11/98, John Holland wrote:
>
>
> > Oracle has a facility for loading in massive data files, sqlload I think
> > is the name. I'd like to load some big data into PostgreSQL 6.4 for
> > testing purposes. Is there a way built in or would a perl or c hack be the
> > way to go?
>
> Use the COPY command. It is preferable not to define indices (or to drop
> the indices) on the table, then do the massive load with COPY, and then
> define the indices.
>
> Herouth
>
> --
> Herouth Maoz, Internet developer.
> Open University of Israel - Telem project
> http://telem.openu.ac.il/~herutma
>
>
>


pgsql-general by date:

Previous
From: Sbragion Denis
Date:
Subject: Re: [INTERFACES] Postgres mentioned in Information Week
Next
From: "Jeff Hoffmann"
Date:
Subject: Re: [GENERAL] equivalent of sqlload?