Thread: interface between c and postgresql

interface between c and postgresql

From
jun liu
Date:
Hi,

i want to query some postgreSQL tables in C program,
could anybody tell me whether there is such an 
interface between postgreSQL and  C ?

thanks in advance.


--jun



__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/


Re: interface between c and postgresql

From
jr@i-bucks.com
Date:
At 07:20 PM 3/7/01 -0800, jun liu wrote:
>Hi,
>
>i want to query some postgreSQL tables in C program,
>could anybody tell me whether there is such an 
>interface between postgreSQL and  C ?

yes, there are several interfaces:
libpq is a call level interface.
libpqeasy is a simplified version of the call level interface (on error,
terminate program).
ecpg is the embedded sql C interface
libpq++ is the interface for C++.

there is documentation about these kicking about.  some documentation is
also available in Bruce Momjian's book, PostgreSQL Interduction and concepts.

jr