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 093963A3C56 for ; Mon, 8 Nov 2004 09:54:30 +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 04608-03 for ; Mon, 8 Nov 2004 09:54:23 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id CF6E13A3B91 for ; Mon, 8 Nov 2004 09:54:24 +0000 (GMT) Received: (qmail 31971 invoked by uid 1112); 8 Nov 2004 09:54:39 -0000 Date: Mon, 8 Nov 2004 04:54:39 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Jowett Cc: Markus Schaber , pgsql-jdbc@postgresql.org Subject: Re: Avoiding explicit addDataType calls for PostGIS In-Reply-To: <418F3B19.9000708@opencloud.com> Message-ID: References: <20041006181653.4fc83924@kingfisher.intern.logi-track.com> <41645F7A.2040106@opencloud.com> <20041007104603.78af41f3@kingfisher.intern.logi-track.com> <416B63BF.4090304@opencloud.com> <417588E7.7020205@opencloud.com> <20041103122816.1c6ab2de@kingfisher.intern.logi-track.com> <418939E6.7030602@opencloud.com> <20041104113056.5a906179@kingfisher.intern.logi-track.com> <418F3340.306@opencloud.com> <418F3B19.9000708@opencloud.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/73 X-Sequence-Number: 11495 On Mon, 8 Nov 2004, Oliver Jowett wrote: > Kris Jurka wrote: > > > Let me be more clear. I like the properties file method for configuring > > external libraries (postgis), but I don't like it for configuring the > > driver itself. Specifically consider your addition of prepareThreshold=5, > > suppose I wanted to override this setting with my own properties file. > > Then I'd have to be real careful about how I setup my classpath. > > Ah, ok. > > Currently, if someone wants to change a default, they have to either > modify the driver source and recompile, or remember to override the > built-in default in every single URL ever used. > > If the default is stored in a properties file packaged with the driver, > they can tweak the default by editing that properties file, which seems > much easier. We're getting closer to understanding each other. I've just committed a version of this patch that reads all available org.postgresql.driverconfig.properties files and uses them to set any defaults. My whole point is that I did not want to put a driverconfig.properties file in postgresql.jar because we don't need to and it will only create potential problems. Kris Jurka