Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Bug in JDBC-Driver?


  • From: Kris Jurka <books(at)ejurka(dot)com>
  • To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • Cc: Antje(dot)Stejskal(at)ppi(dot)de, pgsql-jdbc(at)postgresql(dot)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> <text/plain>


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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group