X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 178E18BA19F for ; Fri, 11 Feb 2005 20:51:55 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29196-06 for ; Fri, 11 Feb 2005 20:51:43 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.176]) by svr1.postgresql.org (Postfix) with ESMTP id 8D7858BA17E for ; Fri, 11 Feb 2005 20:51:43 +0000 (GMT) Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CzhlH-00042t-00; Fri, 11 Feb 2005 21:51:35 +0100 Received: from [80.136.242.72] (helo=lunix.schabi.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1CzhlH-00040K-00; Fri, 11 Feb 2005 21:51:35 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lunix.schabi.de (Postfix) with ESMTP id 06E3C30A7AF; Fri, 11 Feb 2005 21:51:29 +0100 (CET) Message-ID: <420D1AD1.9050709@logi-track.com> Date: Fri, 11 Feb 2005 21:51:29 +0100 From: Markus Schaber User-Agent: Mozilla Thunderbird 1.0 (X11/20041218) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Oliver Jowett Cc: "pgsql-jdbc@postgresql.org" , PostGIS Development Discussion , alex bodnaru Subject: Re: PGConnection vs. Connection References: <420CD366.8040603@logi-track.com> <420D1444.3060806@opencloud.com> In-Reply-To: <420D1444.3060806@opencloud.com> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a9554655f07a4e401310f2acfb43f5bf X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.025 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/99 X-Sequence-Number: 12279 Hi, Oliver, Oliver Jowett schrieb: >> - Prodiding a patch that is to be applied manually (rsp. by the debian >> package build process) when building for 7.2. (this is our "current >> practice"). > > That seems the simplest approach. Both the 7.2 driver and server are > truely ancient now -- I think having to manually apply a patch if you > want to run against them isn't unreasonable. I know that it is truely ancient, but for the PostGIS JDBC extension developers, there are three reasons to support it: PostgreSQL itsself still supports 7.2, PostGIS C code supports it, and Debian sta(b)le comes with it. >> - Using reflection. This could allow us per run-time distinction to use >> o.p.PGConnection.addDataType(Class) when running against pgjdbc 8.0, >> o.p.PGConnection.addDataType(String) against 7.3/7.4, and >> o.p.Connection.addDataType(String) against 7.2. This way we could ship >> a single postgis.jar that runs against all pgjdbc versions. > > That seems the most flexible approach, but reflection can be a pain to > deal with. For the packaging case, if you are going to build "PostGIS > for 7.2" and "PostGIS for 8.0" as separate packages then there doesn't > seem like much advantage to having a single PostGIS build/jar anyway. The reflection approach and the approach using our own files to compile against have the advantage that we do not need to create different jars for different jdbc versions, so the user does not have to bother which one to use. This is why we did begin to think about them at all - make it easy for the user. This is mainly for users that download their postgis.jar from somewhere and drop it into their classpath, not for the ones that automagically get their things resolved by .deb/.rpm package system. Markus