Re: [GENERAL] Importing delimited files

Поиск
Список
Период
Сортировка
От Tom Good
Тема Re: [GENERAL] Importing delimited files
Дата
Msg-id Pine.LNX.3.95.980622120340.13508A-100000@mailhost.nrnet.org
обсуждение исходный текст
Ответ на Importing delimited files  (kheflin <kheflin@shreve.net>)
Список 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 по дате отправления:

Предыдущее
От: "Brett W. McCoy"
Дата:
Сообщение: Re: [GENERAL] Importing delimited files
Следующее
От: Brian
Дата:
Сообщение: datatype questions