X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id CFB5911F62E7 for ; Mon, 24 Apr 2006 18:02:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 97738-04 for ; Mon, 24 Apr 2006 18:01:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id EE00A11F6BC8 for ; Mon, 24 Apr 2006 17:55:08 -0300 (ADT) Received: (qmail 14576 invoked by uid 1112); 24 Apr 2006 20:55:08 -0000 Date: Mon, 24 Apr 2006 15:55:08 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: George Woodring cc: pgsql-jdbc@postgresql.org Subject: Re: Automated setting of timezone with connection pooling In-Reply-To: <1B1B254441DB31448BD34C5BD73B0B8B2904B1@PHOENIX.istructure.com> Message-ID: References: <1B1B254441DB31448BD34C5BD73B0B8B2904B1@PHOENIX.istructure.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/154 X-Sequence-Number: 15088 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