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 192D9528EF for ; Fri, 22 Jul 2005 15:27:13 -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 68041-08 for ; Fri, 22 Jul 2005 18:27:03 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id BDCF35287E for ; Fri, 22 Jul 2005 15:27:01 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j6MIR0Eg010317; Fri, 22 Jul 2005 14:27:00 -0400 (EDT) To: "Kevin Grittner" Cc: pg@fastcrypt.com, pgsql-jdbc@postgresql.org Subject: Re: Timestamp Conversion Woes Redux In-reply-to: References: Comments: In-reply-to "Kevin Grittner" message dated "Fri, 22 Jul 2005 13:20:38 -0500" Date: Fri, 22 Jul 2005 14:27:00 -0400 Message-ID: <10316.1122056820@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/256 X-Sequence-Number: 13404 "Kevin Grittner" writes: > What differences in _behavior_ are exposed to someone > _using_ the database, other than ignoring time zone information for the > "timestamp without time zone" values? Well, other than the point that changing TimeZone changes the displayed values of timestamptz but not timestamp, there's the fact that timestamptz will reject (or change, actually) some values that timestamp will consider valid. For instance '2005-04-03 02:30' is valid to timestamp, but in any US timezone it will come out as something different in timestamptz. regression=# show timezone; TimeZone ---------- EST5EDT (1 row) regression=# select '2005-04-03 02:30'::timestamp; timestamp --------------------- 2005-04-03 02:30:00 (1 row) regression=# select '2005-04-03 02:30'::timestamptz; timestamptz ------------------------ 2005-04-03 03:30:00-04 (1 row) regards, tom lane