Re: Comments on adding more connection URL parameters.

From: Kris Jurka <books(at)ejurka(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Barry Lind <blind(at)xythos(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>, <g(dot)tomassoni(at)libero(dot)it>
Subject: Re: Comments on adding more connection URL parameters.
Date: 2004-02-04 06:50:36
Message-ID: Pine.LNX.4.33.0402040146370.21910-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Wed, 4 Feb 2004, Oliver Jowett wrote:

> One issue with the DataSource mapping is that it gets harder to support
> a whole family of parameters (e.g. the guc_ prefix suggested) in one go,
> as we need to know the exact set of parameters we support at compile
> time so we can declare the necessary accessor methods. Maybe we could
> provide a catchall accessor (setExtraParameters()?) that takes a
> Properties object or similar.

Yes, supporting all GUC options is something we certainly wouldn't want to
do by providing a method for each one. Especially since different server
versions have different options and syntax. I imagine setGUC(String name,
String value) would be sufficient. I suppose also we would have to be
aware of GUC options that the driver sets itself (like datestyle and
client_encoding) to ensure that these are not overwritten.

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2004-02-04 07:13:24 Re: Comments on adding more connection URL parameters.
Previous Message Kris Jurka 2004-02-04 06:46:34 Re: Comments on adding more connection URL parameters.