pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: George Woodring <george.woodring@iglass.net>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: SQL solution for my JDBC timezone issue
Date: Mon, 23 Feb 2015 16:31:28 -0500
Message-ID: <12783.1424727088@sss.pgh.pa.us> (raw)
In-Reply-To: <CADK3HHL-5YnbyHb5SVQExZ0pj9XT1fVJr06fjitU234Wh3w3+w@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>
	<54EB8DA8.6060302@aklaver.com>
	<CADK3HHL-5YnbyHb5SVQExZ0pj9XT1fVJr06fjitU234Wh3w3+w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

Dave Cramer <pg@fastcrypt.com> writes:
> Everytime you get a connection the driver will issue set timezone ...
> It does not change the default time zone for the server (AFAICS)

Hmm ... depending on exactly how you issue it, it might become the default
for the session, I think.  I seem to recall that parameter settings
included in the startup packet become session-lifespan defaults.  If you
issued the SET as a separate command then a RESET ought to undo it.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (17+ messages)  latest in thread

Message-ID: <12783.1424727088@sss.pgh.pa.us>
Permalink:  ../12783.1424727088@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12783.1424727088@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, pg@fastcrypt.com, adrian.klaver@aklaver.com, george.woodring@iglass.net, pgsql-general@postgresql.org
  Subject: Re: SQL solution for my JDBC timezone issue
  In-Reply-To: <12783.1424727088@sss.pgh.pa.us>
  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> <CADK3HHL-5YnbyHb5SVQExZ0pj9XT1fVJr06fjitU234Wh3w3+w@mail.gmail.com> <12783.1424727088@sss.pgh.pa.us>

* 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