Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 350759FAD5A for ; Thu, 28 Sep 2006 13:46:41 -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 42982-05 for ; Thu, 28 Sep 2006 13:46:35 -0300 (ADT) X-Greylist: delayed 02:41:24.247938 by SQLgrey- Received: from buck.northernsportsman.ca (w133.diversia.ca [216.191.241.133]) by postgresql.org (Postfix) with ESMTP id 3CDC19FA4A4 for ; Thu, 28 Sep 2006 13:46:35 -0300 (ADT) 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 k8SGnTkp022537 for ; Thu, 28 Sep 2006 12:49:30 -0400 Received: from 142.46.208.244 (SquirrelMail authenticated user earlej) by kronos.honk.org with HTTP; Thu, 28 Sep 2006 12:49:30 -0400 (EDT) Message-ID: <4519.142.46.208.244.1159462170.squirrel@kronos.honk.org> In-Reply-To: <25730.1159455311@sss.pgh.pa.us> References: <4347.142.46.208.244.1159452491.squirrel@kronos.honk.org> <25730.1159455311@sss.pgh.pa.us> Date: Thu, 28 Sep 2006 12:49:30 -0400 (EDT) Subject: Re: 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.168 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/35 X-Sequence-Number: 6280 Tom Lane wrote: > "Jon Earle" writes: >> 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)? > > No. At minimum you're going to need the configure script and src/port/ > as well. My inclination would just be to ship the unmodified tarball > and do I noticed the makefile in the libpq dir made symlinks to a handful of .c files in src/port and references one .h. Aside from those, which I could simply copy into the libpq dir, is there anything inside the libpq dir that is changed by the configure script that I can't manage myself? Honestly, this really doesn't need to be fancy - (hold your nose) it's fine/preferable to have all the libpq .o's can be linked with myapp.c into a single binary myapp. > Obviously you could strip large parts of the tarball out, but then you'd > have to redo that work every time we update. I don't see this as an issue... the mysql code in place now is very old - from the 3.2x days - but works fine to connect to an up-to-date mysql server. Unless there is a serious enough issue that demands an update (and perhaps not even then - the app will always run on a protected network), it will likely remain as-is until the app is overhauled, replaced or abandoned. > Also keep in mind the possibility that libpq is already installed on the > machine you're on. Possibly, but very unlikely.