Re: copy with libpq? - Mailing list pgsql-general

From Holger Klawitter
Subject Re: copy with libpq?
Date
Msg-id 3987E2F0.A9860DE7@klawitter.de
Whole thread Raw
In response to copy with libpq?  (Jerome Raupach <jraupach@intelcom.fr>)
List 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 by date:

Previous
From: tolik@aaanet.ru (Anatoly K. Lasareff)
Date:
Subject: Re: SQL guru needed
Next
From: Alessio Bragadini
Date:
Subject: Slash on PostgreSQL mailing list