Received: from speedy.i-bucks.com ([216.2.101.40]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2CLUCx79825 for ; Mon, 12 Mar 2001 16:30:12 -0500 (EST) (envelope-from jr@i-bucks.com) Received: from CBL-riehl (CBL-riehl.hs.earthlink.net [209.178.111.84]) by speedy.i-bucks.com (8.9.3/8.9.3) with SMTP id NAA29777; Mon, 12 Mar 2001 13:30:38 -0800 Message-Id: <3.0.6.32.20010312133321.007f6540@mail.i-bucks.com> X-Sender: jr@mail.i-bucks.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 12 Mar 2001 13:33:21 -0800 To: jun liu , pgsql-interfaces@postgresql.org From: jr@i-bucks.com Subject: Re: interface between c and postgresql Cc: jliu_01@yahoo.com In-Reply-To: <20010308032015.26122.qmail@web12710.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200103/102 X-Sequence-Number: 1263 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