pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Antje.Stejskal@ppi.de
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug in JDBC-Driver?
Date: Sat, 18 Dec 2004 01:36:23 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0412180129330.31745@leary.csoft.net> (raw)
In-Reply-To: <28459.1103350891@sss.pgh.pa.us>
References: <6D48B8403D926449BDE8440EC7EEC46D021F2026@max.ppinet.de>
	<Pine.BSO.4.56.0411300213500.5924@leary.csoft.net>
	<Pine.BSO.4.56.0412172356480.15005@leary.csoft.net>
	<28459.1103350891@sss.pgh.pa.us>



On Sat, 18 Dec 2004, Tom Lane wrote:

> The really serious problem with this is the assumption that the server
> has the same set of available timezones (and spellings of same) as the
> client does.

I did some testing here and found of the 558 available timezones (in JDK 
1.4) that 526 were accepted on 7.4 and 527 were accepted on 8.0, this is 
on an unstable debian box, but it seemed like a pretty good percent.

> In 8.0 and later you can presume that the server is following the
> zic database's set of timezone names, but I dunno whether that has
> anything to do with the Java universe.  Pre-8.0, you'd be foolish
> to assume much of anything.
> 
> It's not quite too late to make TimeZone be one of the GUC_REPORT
> settings in 8.0, if that would help your problem.
> 

Well this just kind of reverses the problem, now Java must have the same
set of timezones as the zic database, but I think making TimeZone a 
GUC_REPORT is a good idea because we may want to go that route down the 
line and now we certainly want to detect if someone has manually set the 
TimeZone behind our backs.

Kris Jurka



view thread (19+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0412180129330.31745@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0412180129330.31745@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0412180129330.31745@leary.csoft.net

 · 

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: books@ejurka.com, tgl@sss.pgh.pa.us, Antje.Stejskal@ppi.de
  Subject: Re: Bug in JDBC-Driver?
  In-Reply-To: <Pine.BSO.4.56.0412180129330.31745@leary.csoft.net>
  References: <6D48B8403D926449BDE8440EC7EEC46D021F2026@max.ppinet.de> <Pine.BSO.4.56.0411300213500.5924@leary.csoft.net> <Pine.BSO.4.56.0412172356480.15005@leary.csoft.net> <28459.1103350891@sss.pgh.pa.us> <Pine.BSO.4.56.0412180129330.31745@leary.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