pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Markus Schaber <schabios@logi-track.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Cc: PostGIS Development Discussion <postgis-devel@postgis.refractions.net>
Cc: alex bodnaru <alexbodn@012.net.il>
Subject: Re: PGConnection vs. Connection
Date: Sat, 12 Feb 2005 09:23:32 +1300
Message-ID: <420D1444.3060806@opencloud.com> (raw)
In-Reply-To: <420CD366.8040603@logi-track.com>
References: <420CD366.8040603@logi-track.com>

Markus Schaber wrote:

> the addDataType() methods are carried by the
> org.postgresql.Connection class instead of the
> org.postgresql.PGConnection interface in 7.3 and up.

That's unfortunate :(

> - 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.

> - 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.

-O



view thread (3+ messages)  latest in thread

Message-ID: <420D1444.3060806@opencloud.com>
Permalink:  ../420D1444.3060806@opencloud.com/
Also on:    postgresql.org/message-id/420D1444.3060806@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, schabios@logi-track.com, postgis-devel@postgis.refractions.net, alexbodn@012.net.il
  Subject: Re: PGConnection vs. Connection
  In-Reply-To: <420D1444.3060806@opencloud.com>
  References: <420CD366.8040603@logi-track.com> <420D1444.3060806@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox