Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 29E999FA435 for ; Thu, 28 Sep 2006 11:05:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 37577-07 for ; Thu, 28 Sep 2006 11:05:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 61EE29FA251 for ; Thu, 28 Sep 2006 11:05:20 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from buck.northernsportsman.ca (kronos.honk.org [216.191.241.133]) by svr4.postgresql.org (Postfix) with ESMTP id 248FA5AF88F for ; Thu, 28 Sep 2006 14:05:19 +0000 (GMT) Received: from kronos.honk.org (localhost [127.0.0.1]) by buck.northernsportsman.ca (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k8SE86nk022280 for ; Thu, 28 Sep 2006 10:08:11 -0400 Received: from 142.46.208.244 (SquirrelMail authenticated user earlej) by kronos.honk.org with HTTP; Thu, 28 Sep 2006 10:08:11 -0400 (EDT) Message-ID: <4347.142.46.208.244.1159452491.squirrel@kronos.honk.org> Date: Thu, 28 Sep 2006 10:08:11 -0400 (EDT) Subject: Extracting client code From: "Jon Earle" To: pgsql-interfaces@postgresql.org User-Agent: SquirrelMail/1.4.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/33 X-Sequence-Number: 6278 Hi folks, I have a need to extract the postgres client code from the tarball for inclusion into a separate application. This app will talk to a PG database (obviously) over a network and will be the only app that will be communicating with the database (aside from a PHP application on the same box as the PG server). This app will be compiled on various platforms - AIX, HPUX, Solaris, Linux and Unixware are the main ones that come to mind. I have no specific need to keep the PG code in a library so compiling the PG client code together with my application code module is not only acceptable, it would be preferred. Currently, the app is using mysql client code in this precise fashion - I'd like to "simply" replace the mysql code with postgres code for our own consistency. Before I get too far into working this up, at this point, I'm really just curious if this is doable. Can I just take the src/interface/libpq dir contents, parachute them into the same dir as my app, then just compile it all together (after making the appropriate changes to my own app, of course)? Thanks for any insight!