Re: Embed SQL in C - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: Embed SQL in C
Date
Msg-id 20050307041025.GB23291@winnie.fuhr.org
Whole thread Raw
In response to Re: Embed SQL in C  (Michael Fuhr <mike@fuhr.org>)
List pgsql-novice
On Sun, Mar 06, 2005 at 09:08:07PM -0700, Michael Fuhr wrote:
> On Wed, Mar 02, 2005 at 06:46:10PM +0100, GMX wrote:
>
> > I need a C-program that goes something like this:
>
> Why the requirement to use C?  Many tasks are easier in and can be
> adequately written with higher-level languages like Perl, Python,
> Ruby, Tcl, etc.

If you must use C, see the libpq or ECPG documentation.  Here are
links to the relevant chapters for the latest version of PostgreSQL:

http://www.postgresql.org/docs/8.0/interactive/libpq.html
http://www.postgresql.org/docs/8.0/interactive/ecpg.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-novice by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Embed SQL in C
Next
From: Wolfgang Keller
Date:
Subject: Re: Python modules for PL/Python?