From: Tom Lane <tgl@sss.pgh.pa.us>
To: eshkinkot@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz
Date: Sat, 21 Apr 2012 13:49:55 -0400
Message-ID: <2165.1335030595@sss.pgh.pa.us> (raw)
In-Reply-To: <E1SLUU2-0004nB-1c@wrigleys.postgresql.org>
References: <E1SLUU2-0004nB-1c@wrigleys.postgresql.org>
eshkinkot@gmail.com writes:
> set timezone to 'W-SU'; select '2011-03-27 23:00:00'::timestamptz;
> SET
> timestamptz
> ------------------------
> 2011-03-28 02:59:54+04
Bizarre. On my Fedora 16 box, I see a different misbehavior:
regression=# set timezone to 'Europe/Moscow'; select '2011-03-27 23:00:00'::timestamptz;
SET
timestamptz
------------------------
2011-03-28 00:29:40+04
(1 row)
(W-SU behaves the same, incidentally.) Two other machines are fine
with this case, though. It may or may not be relevant that the F16
build is using --with-system-tzdata, as I imagine your Debian package
is also, while the machines that are happy are not.
So: some platform-specific misbehavior here. I have no time to poke at
it more now, though. Who else can reproduce this, on what platforms?
regards, tom lane
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: tgl@sss.pgh.pa.us, eshkinkot@gmail.com
Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz
In-Reply-To: <2165.1335030595@sss.pgh.pa.us>
References: <E1SLUU2-0004nB-1c@wrigleys.postgresql.org> <2165.1335030595@sss.pgh.pa.us>
* 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