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 E221B52F0C for ; Mon, 25 Jul 2005 19:02:25 -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 06894-07 for ; Mon, 25 Jul 2005 22:02:14 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by svr1.postgresql.org (Postfix) with ESMTP id 3638552E81 for ; Mon, 25 Jul 2005 19:02:13 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i21so26637wra for ; Mon, 25 Jul 2005 15:02:16 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RtgukBk5hZAPmiQlu19Ast2PZJHrH0LI3PqE7PFaUEn+uEtfqYt6MeY3Qn283IHo4r2xnOw9aIq1gEnWO8TeQksFWdPbSzTP3s3siMMc0rHCaO5cUDHpgMKzrvdCRL8aHZCj4FQ3xMC4dj6cLC+TguwwL/YRzviU3KbyrpTGCCk= Received: by 10.54.32.41 with SMTP id f41mr1007665wrf; Mon, 25 Jul 2005 15:02:16 -0700 (PDT) Received: by 10.54.143.14 with HTTP; Mon, 25 Jul 2005 15:02:16 -0700 (PDT) Message-ID: Date: Tue, 26 Jul 2005 00:02:16 +0200 From: "emergency.shower@gmail.com" Reply-To: "emergency.shower@gmail.com" To: pgsql-jdbc@postgresql.org Subject: Re: Timestamp weirdness In-Reply-To: <14992.1122245290@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42E4158D.3020902@opencloud.com> <14992.1122245290@sss.pgh.pa.us> 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/304 X-Sequence-Number: 13452 On 7/25/05, Tom Lane wrote: > [...] > The difficulty with both 2 and 3 is that the driver has no very good way > of knowing whether it's writing to a timestamp with tz or one without. > We can know the parameter datatype we send, but if that gets converted > to the other type within the server, you're going to get burnt. If I TIMESTAMP WITH TIME ZONE is implemented on the server as a (timestamp, time zone)-pair, the server should be able to cast TIMESTAMP WITH TIME ZONE correctly to TIMESTAMP WITHOUT TIME ZONE as described in the SQL standard: