From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | George Woodring <george(dot)woodring(at)iglass(dot)net> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Automated setting of timezone with connection pooling |
Date: | 2006-04-24 20:55:08 |
Message-ID: | Pine.BSO.4.63.0604241552090.18217@leary2.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Mon, 24 Apr 2006, George Woodring wrote:
> We have multiple databases in a cluster ( one for each of our customers
> ) which the default time zone needs to be different. We are currently
> using dbcp to do our connection pooling. Can anyone recommend a good
> way of automatically setting the timezone when the connection is made?
>
I'm uncertain of what your requirements are. Do you just need a different
default timezone per database? If so, ALTER DATABASE mydb SET timezone =
'America/Los_Angeles'; You can also set the timezone in the same
fashion per database user. If you have other requirements,
you'll need to make them clear, but you're probably out of luck.
Kris Jurka
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas SMETS | 2006-04-25 22:53:10 | JDBC driver does not support getGeneratedKeys method |
Previous Message | DanixDefcon5 | 2006-04-24 18:59:08 | Money deprecation and cast problem |