COPY FROM STDIN instead of INSERT

Поиск
Список
Период
Сортировка
От Ilja Golshtein
Тема COPY FROM STDIN instead of INSERT
Дата
Msg-id 4535C467.000001.08425@mfront8.yandex.ru
обсуждение исходный текст
Ответы Re: COPY FROM STDIN instead of INSERT  (Shane Ambler <pgsql@007Marketing.com>)
Re: COPY FROM STDIN instead of INSERT  ("Merlin Moncure" <mmoncure@gmail.com>)
Список pgsql-general
Hello!

One important use case in my libpq based application (PostgreSQL 8.1.4) is a sort of massive data loading.

Currently it is implemented as a series of plain normal INSERTs
(binary form of PQexecParams is used) and the problem here it is pretty slow.

I've tried to play with batches and with peculiar constructions
like INSERT (SELECT .. UNION ALL SELECT ..) to improve performance, but not satisfied with the result I've got.

Now I try to figure out if it is possible to use COPY FROM STDIN instead of INSERT if I have to insert, say, more then
100records at once.  

Hints are highly appreciated.

The only limitaion mentioned in Manual is about Rules and I don't care about this since I don't use Rules.
Am I going to come across with any other problems (concurrency, reliability, compatibility, whatever) on this way?

Many thanks.

--
Best regards
Ilja Golshtein

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

Предыдущее
От: roopa perumalraja
Дата:
Сообщение: Re: Maximum size of database
Следующее
От: louis gonzales
Дата:
Сообщение: Re: Maximum size of database