Re: [GENERAL] Importing delimited files - Mailing list pgsql-general

From Tom Good
Subject Re: [GENERAL] Importing delimited files
Date
Msg-id Pine.LNX.3.95.980622120340.13508A-100000@mailhost.nrnet.org
Whole thread Raw
In response to Importing delimited files  (kheflin <kheflin@shreve.net>)
List pgsql-general
On Mon, 22 Jun 1998, kheflin wrote:

> I've usually imported any delimited text files into my PostgreSQL
> databases using "PGACCESS" which has worked great for me. Our System
> Admin here is wanting to import a delimited text file into a postgresql
> database using the psql command line...
>
> any suggestions?
>
> Kevin

Hi,

I just finished loading 54,000 + records into postgres, from the command
line.

$ pgsql -e dbname < loadfile

At the top of the file I put;
COPY table_name FROM stdin;

At EOF I put:
\.

BTW, loading 54353 records (22 attributes) into a db took about 4 minutes
on a 486 dx2/66 (all scsi) with a lowly 32M of RAM...

Once I created my index, selecting one record from this soup takes less
than a second (linux 2.0.27)...

Good luck!
===================================================================
        User Guide Dog Database Project
===================================================================
                  Powered by PostgreSQL 6.3.2
       * Advanced Database Design - Proven Performance *
                             ----
               Perl 5.004 / DBI-0.91::DBD-PG-0.69
===================================================================
                   http://www.panix.com/~ugd
===================================================================


pgsql-general by date:

Previous
From: "Brett W. McCoy"
Date:
Subject: Re: [GENERAL] Importing delimited files
Next
From: Brian
Date:
Subject: datatype questions