Re: copy with libpq?

Поиск
Список
Период
Сортировка
От Holger Klawitter
Тема Re: copy with libpq?
Дата
Msg-id 3987E2F0.A9860DE7@klawitter.de
обсуждение исходный текст
Ответ на copy with libpq?  (Jerome Raupach <jraupach@intelcom.fr>)
Список pgsql-general
Jerome Raupach wrote:
>
> I want to use copy ( file -> db ) with a command in C.
> How do i?

The easiest (albeit dirty) way is probably a call to
    system( "psql ..." )

But you can also call libpq directly. Documentation is
available in /path/to/postgres/doc/programmer (chapter 17 deals
with libpq)

HTH,
    Holger Klawitter
--
Holger Klawitter                                    +49 (0)251 484 0637
holger@klawitter.de                            http://www.klawitter.de/



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

Предыдущее
От: tolik@aaanet.ru (Anatoly K. Lasareff)
Дата:
Сообщение: Re: SQL guru needed
Следующее
От: Alessio Bragadini
Дата:
Сообщение: Slash on PostgreSQL mailing list