From: Karsten Düsterloh <pg-bugs-ml@tal.de>
To: pgsql-bugs@postgresql.org
Subject: Strange time zone +00:53:28
Date: Fri, 10 May 2013 10:34:02 +0200
Message-ID: <518CB0FA.2080702@tal.de> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi!
Recently, we switched from Pg 8.3 to Pg 9.1, using Pg9's pg_upgrade to
migrate our cluster. The cluster itself is running on a Debian 6 machine
with timezone Europe/Berlin, which means UTC+02 currently.
Under Pg 8.3, we used the timestamp
0001-01-01 00:00:00+01
as an easy-to-remember marker for 'dunno, but predates any usual
business dates' for fields of type timestamp with time zone.
With Pg 9.1, these timestamps now appear as
0001-12-31 23:53:28+00:53:28 BC
(using a current psql shell in both cases).
If I try to reset the timestamp, eg by
update testtable set ts='0001-01-01';
the result is
0001-01-01 00:00:00+00:53:28
Specifying the time explicitly
update testtable set ts='0001-01-01 00:00:00+01:00:00';
results in
0001-12-31 23:53:28+00:53:28 BC
again, hence I'd suspect that somehow the textual representation of such
timestamps is broken?!
Any ideas?
Is this a known bug (I didn't find), maybe fixed in 9.2?
Karsten
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: pg-bugs-ml@tal.de
Subject: Re: Strange time zone +00:53:28
In-Reply-To: <518CB0FA.2080702@tal.de>
References: <518CB0FA.2080702@tal.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox