Re: copy with libpq?

From: Holger Klawitter <holger(at)klawitter(dot)de>
To: Jerome Raupach <jraupach(at)intelcom(dot)fr>, "pgsql-general(at)postgreSQL(dot)org" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: copy with libpq?
Date: 2000-08-02 08:59:28
Message-ID: 3987E2F0.A9860DE7@klawitter.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

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(at)klawitter(dot)de http://www.klawitter.de/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alessio Bragadini 2000-08-02 09:35:21 Slash on PostgreSQL mailing list
Previous Message Anatoly K. Lasareff 2000-08-02 08:18:08 Re: SQL guru needed

Browse pgsql-novice by date

  From Date Subject
Next Message Carsten Huettl 2000-08-02 09:08:27 Re: pgsql setup
Previous Message Jerome Raupach 2000-08-02 07:55:20 copy with libpq?