Re: populating a table via the COPY command using C code.

Поиск
Список
Период
Сортировка
От Sean Davis
Тема Re: populating a table via the COPY command using C code.
Дата
Msg-id b834fcb8af6c3766c66163ef51c92180@mail.nih.gov
обсуждение исходный текст
Ответ на Re: populating a table via the COPY command using C code.  ("Mak, Jason" <jason.mak@ngc.com>)
Список pgsql-general
On Apr 27, 2005, at 4:48 PM, Mak, Jason wrote:

> What's your thoughts??  which approach would be the fastest?
> 1) 2 step process.
> 2) realtime PQputCopyData - not sure how this would work with 3
> different tables.
> 3) COPY tablename FROM 'filename'
>
> thanks,
> jason.

COPY tablename FROM 'filename'

is VERY fast.  Generally, I think people generally load the data into
postgres using COPY (perhaps into a "loader" table that isn't in the
same format that the final tables will be in) and then do data
manipulation and cleaning within the database using database tools.
This paradigm may or may not work for you, but it seems to be pretty
general.

Sean


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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Serial / auto increment data type
Следующее
От: Tony Caduto
Дата:
Сообщение: Re: Serial / auto increment data type