From: Adrian Klaver <adrian.klaver@aklaver.com>
To: George Woodring <george.woodring@iglass.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: SQL solution for my JDBC timezone issue
Date: Mon, 23 Feb 2015 12:29:28 -0800
Message-ID: <54EB8DA8.6060302@aklaver.com> (raw)
In-Reply-To: <CACi+J=Sp1yFe-GsGO2Cxp3G1w7X38hkEeLdKk381AHuqYPeuSA@mail.gmail.com>
References: <CACi+J=S96EmLRhqGY4EYUc7vEvrx_KTQJdvT9sE1xA8SvWT69Q@mail.gmail.com>
<CADK3HHJLbxfGuEpeQ6tGpFp2GGQCT8PcdepjAmSU9KMV_AKNEA@mail.gmail.com>
<CACi+J=SHZJTjVG_pgjhHnttvK3aKqYG-CBO8wLDBtW07XbUbiw@mail.gmail.com>
<31121.1424706593@sss.pgh.pa.us>
<CACi+J=Sp1yFe-GsGO2Cxp3G1w7X38hkEeLdKk381AHuqYPeuSA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On 02/23/2015 12:15 PM, George Woodring wrote:
> This is what I was looking for, however the JDBC does something to make
> its timezone the default.
>
> My cluster is set to GMT, I have a DB that is set to US/Pacific, when I
> get the connection from JDBC it is US/Eastern. The reset command does
> not affect it. I can set timezone in the code to 'US/Pacific" and I see
> it change, when I do another RESET timezone it goes back to US/Eastern.
In your original post you mentioned that access to the databases is
through a Web server.
Is there just one Web server with one time zone?
>
> Thanks,
> George Woodring
>
> iGLASS Networks
> www.iglass.net <http://www.iglass.net;
>
> On Mon, Feb 23, 2015 at 10:49 AM, Tom Lane <tgl@sss.pgh.pa.us
> <mailto:tgl@sss.pgh.pa.us>> wrote:
>
> George Woodring <george.woodring@iglass.net
> <mailto:george.woodring@iglass.net>> writes:
> > Yes, that is where we think we are heading, the issue is that the code does
> > not know what it needs to be set back to. We have 90 databases with 5
> > different time zones. I was just hoping for a more elegant solution than
> > writing a lookup table that says if you are connecting to db x then set to
> > timezone y.
>
> "RESET timezone" ?
>
> regards, tom lane
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
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: adrian.klaver@aklaver.com, george.woodring@iglass.net, tgl@sss.pgh.pa.us, pg@fastcrypt.com, pgsql-general@postgresql.org
Subject: Re: SQL solution for my JDBC timezone issue
In-Reply-To: <54EB8DA8.6060302@aklaver.com>
References: <CACi+J=S96EmLRhqGY4EYUc7vEvrx_KTQJdvT9sE1xA8SvWT69Q@mail.gmail.com> <CADK3HHJLbxfGuEpeQ6tGpFp2GGQCT8PcdepjAmSU9KMV_AKNEA@mail.gmail.com> <CACi+J=SHZJTjVG_pgjhHnttvK3aKqYG-CBO8wLDBtW07XbUbiw@mail.gmail.com> <31121.1424706593@sss.pgh.pa.us> <CACi+J=Sp1yFe-GsGO2Cxp3G1w7X38hkEeLdKk381AHuqYPeuSA@mail.gmail.com> <54EB8DA8.6060302@aklaver.com>
* 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