Re: Load a csv file into a pgsql table

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: Load a csv file into a pgsql table
Дата
Msg-id D8530D65-F9BB-4AFC-A8E1-F516536A4FBE@blighty.com
обсуждение исходный текст
Ответ на Load a csv file into a pgsql table  (Emi Lu <emilu@encs.concordia.ca>)
Ответы Re: Load a csv file into a pgsql table  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-general
On Sep 19, 2006, at 11:15 AM, Emi Lu wrote:

> Greetings,
>
>
> *Except* copy command, are there other quick ways to load data from
> a csv file into a pgsql table please?

There are several bulk loaders, but I believe they all use COPY
behind the scenes.

If copy isn't an option then your best bet will be many inserts in a
transaction, but that'll be significantly slower. You could cobble
together a loader using perl, DBI and one of the CPAN CSV modules
fairly easily.

(But I can't think of any reason why you wouldn't use copy, so you
must have some constraint you haven't mentioned - can you expand on
why copy isn't an option?)

Cheers,
   Steve


В списке pgsql-general по дате отправления:

Предыдущее
От: "Brandon Aiken"
Дата:
Сообщение: Re: Load a csv file into a pgsql table
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Load a csv file into a pgsql table