From: Kris Jurka <books@ejurka.com>
To: George Woodring <george.woodring@iglass.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Automated setting of timezone with connection pooling
Date: Mon, 24 Apr 2006 15:55:08 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0604241552090.18217@leary2.csoft.net> (raw)
In-Reply-To: <1B1B254441DB31448BD34C5BD73B0B8B2904B1@PHOENIX.istructure.com>
References: <1B1B254441DB31448BD34C5BD73B0B8B2904B1@PHOENIX.istructure.com>
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
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: books@ejurka.com, george.woodring@iglass.net
Subject: Re: Automated setting of timezone with connection pooling
In-Reply-To: <Pine.BSO.4.63.0604241552090.18217@leary2.csoft.net>
References: <1B1B254441DB31448BD34C5BD73B0B8B2904B1@PHOENIX.istructure.com> <Pine.BSO.4.63.0604241552090.18217@leary2.csoft.net>
* 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