X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 54D9852AC4 for ; Mon, 25 Jul 2005 14:13:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32359-02 for ; Mon, 25 Jul 2005 17:13:40 +0000 (GMT) Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.91]) by svr1.postgresql.org (Postfix) with ESMTP id 87EE552AA0 for ; Mon, 25 Jul 2005 14:13:38 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Mon, 25 Jul 2005 12:13:39 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.2 Date: Mon, 25 Jul 2005 12:13:25 -0500 From: "Kevin Grittner" To: , Subject: Re: Timestamp Summary Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/285 X-Sequence-Number: 13433 As someone who is interested in timestamp columns only to hold actual moments in time, I'm very uncomfortable with Christian's proposed "fix". We have a highly multithreaded environment dealing with multiple database servers. Having various threads all setting the default timezone for the JVM to something inaccurate based on connections to a variety of servers seems likely to break much more than it fixes. The primary "problem" being solved by this technique is that it is hard to record a timestamp representing a moment which doesn't exist any more than do the following: 2005-02-29 00:00:00.0 2005-10-35 00:00:00.0 2005-10-25 00:75:00.0 It is fine with me if moments that don't exist can't be stored in the database. Others have pointed out problems with storage and retrieval of valid Timestamp objects. Those seem to me to be the problems to address. I think that would go part of the way toward addressing Christian's problems; but, since you can't actually create a Timestamp object within a JVM set to the correct time zone to represent what he wants, his particular issue will always require munging the Java runtime environment, which is simply not an option in many situations. -Kevin