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 3F4E852ADA for ; Wed, 20 Jul 2005 21:37:46 -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 06851-04 for ; Thu, 21 Jul 2005 00:37:38 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 6825052AD3 for ; Wed, 20 Jul 2005 21:37:37 -0300 (ADT) Received: (qmail 862 invoked from network); 21 Jul 2005 00:37:42 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 21 Jul 2005 00:37:42 -0000 In-Reply-To: <42DEE94C.8060907@opencloud.com> References: <90876a9e05071810503606d431@mail.gmail.com> <16335.1121714809@sss.pgh.pa.us> <10C90079-DD0A-43D7-9389-7486803F0AB1@fastcrypt.com> <42DC37AC.5030704@opencloud.com> <42DCF0C9.4030501@opencloud.com> <23396.1121781259@sss.pgh.pa.us> <392278AB-987F-40CF-B59D-DDF53B9A4ACF@fastcrypt.com> <90876a9e050719093261c52c64@mail.gmail.com> <42DDF238.8090601@opencloud.com> <42DEDB5A.9000803@opencloud.com> <42DEE94C.8060907@opencloud.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <59DE5C3D-585A-4DF2-BF77-8D9669D50335@fastcrypt.com> Cc: Kris Jurka , Christian Cryder , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Timestamp Conversion Woes Redux Date: Wed, 20 Jul 2005 20:37:40 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.015 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/212 X-Sequence-Number: 13360 On 20-Jul-05, at 8:16 PM, Oliver Jowett wrote: > Kris Jurka wrote: > >> >> On Thu, 21 Jul 2005, Oliver Jowett wrote: >> >> >>> Aside from the issues that others have raised, I was worried about >>> existing code that does *not* use PreparedStatement. (probably >>> with good >>> reason given this discussion!) >>> >>> I really don't think the driver should be touching TimeZone :/ >>> >> >> You might appreciate this archived message... >> >> http://archives.postgresql.org/pgsql-jdbc/2004-12/msg00169.php >> > > Heh, good point :-) > > Of course there are no broken applications out there! ;-) > > I still think touching TimeZone is asking for trouble -- we've got no > guarantees that the Java and server timezone databases are 100% in > sync > (even for those timezones in common) If we track the server's timezone in the driver, then if we get a timezone that we don't understand we can just use the JVM's default time zone. > > -O > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: explain analyze is your friend > >