Re: Howto use "COPY FROM" with the native API?

Поиск
Список
Период
Сортировка
От Clemens Eisserer
Тема Re: Howto use "COPY FROM" with the native API?
Дата
Msg-id BANLkTik80rVtPDJFyVu4c-toXcv8yYNPKQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Howto use "COPY FROM" with the native API?  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
Hi Pavel,

>> If so, are there some examples how to use "COPY FROM STDIN" with the
>> native C API?
>
> look to source code on \copy implementation in psql
>
> http://doxygen.postgresql.org/bin_2psql_2copy_8c.html
>
> http://www.postgresql.org/docs/8.1/static/libpq-copy.html

Thanks for the pointer, I also found some very old docs with a few examples.

Works perfectly, inserting every ~128kb of text data postgresql
produces less than 2% load for 2000 inserts/s :)ä

Thanks, Clemens

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

Предыдущее
От: "Henry C."
Дата:
Сообщение: Trying out replication: cp cannot stat log file during recovery
Следующее
От: Mike Orr
Дата:
Сообщение: Re: pg_restore