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 41A3E52BB6 for ; Mon, 25 Jul 2005 14:47:37 -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 39560-05 for ; Mon, 25 Jul 2005 17:47:34 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by svr1.postgresql.org (Postfix) with ESMTP id E810B52BAB for ; Mon, 25 Jul 2005 14:47:32 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 71so924026wri for ; Mon, 25 Jul 2005 10:47:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AmUtAa2w1EQ7GU4UA6Wu9laA8JT3hTGbPU7X6lld4yNQ/3TRCUuDp1j0I7/fco25u4GrrPG17FvX54Idv1O+ldKJcZXlfFqZO+IjPicfaQjGn8CWnSEZnCRJKQgZhAhpZvT04WCYu9k6BxjV5qX+OSH+ppqbgDNiRu8QyTWFpl4= Received: by 10.54.68.16 with SMTP id q16mr2288033wra; Mon, 25 Jul 2005 10:47:33 -0700 (PDT) Received: by 10.54.86.16 with HTTP; Mon, 25 Jul 2005 10:47:33 -0700 (PDT) Message-ID: <90876a9e050725104770efa364@mail.gmail.com> Date: Mon, 25 Jul 2005 11:47:33 -0600 From: Christian Cryder Reply-To: Christian Cryder To: Kevin Grittner Subject: Re: Timestamp Summary Cc: pgsql-jdbc@postgresql.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.071 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200507/290 X-Sequence-Number: 13438 Hi Kevin, On 7/25/05, Kevin Grittner wrote: > As someone who is interested in timestamp columns only to hold actual > moments in time, I'm very uncomfortable with Christian's proposed "fix". But this isn't how the DB works...from the command line sql interface, or via the Statement implementation, you can easily insert "invalid" (eg. not-valid-DST) timestamps. So how does this mesh with my data integrity concerns - if I read a timestamp from jdbc, and then turn around and write that same timestamp, it seems to me the object shouldn't get munged. And right now, it does. > since you can't actually create a Timestamp object within=20 > a JVM set to the correct time zone to represent what he wants Just to be clear - you CAN create a Timestamp for these objects (it just requires having DST turned off in order to do it). And that's really the rub - the DB contains data that Timestamp thinks is invalid (unless DST is turned off). We need something more than a "configure both your client and server to use the same non-DST timezone", which is currently the only option (although my suggestion still requires us to set the client into non-DST programatically). All that said, I am still basically sympathetic with your concern. It seems a bit hacky to me too, to be forcing the timezone on the server, just so date munging doesn't happen. I'd still like a solution where I can re-insert the date without munging, even if the server and the client are both running w/ DST turned on. So if someone can think of a way to do that, that would be even better... Christian