pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: eshkinkot@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz
Date: Sun, 22 Apr 2012 09:29:24 +1200
Message-ID: <4F9326B4.6020900@archidevsys.co.nz> (raw)
In-Reply-To: <2165.1335030595@sss.pgh.pa.us>
References: <E1SLUU2-0004nB-1c@wrigleys.postgresql.org>
	<2165.1335030595@sss.pgh.pa.us>

On 22/04/12 05:49, Tom Lane wrote:
> 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
>
I get strange results on Fedora 16 (I think I upgraded straight from 14)!

$ psql
psql (9.1.3)
Type "help" for help.

gavin=> set timezone to 'Europe/Moscow'; select  '2011-03-27 
23:00:00'::timestamptz;
SET
       timestamptz
------------------------
  2010-05-02 05:46:24+04
(1 row)

gavin=> \q
$ uname -a
Linux saturn 3.3.2-1.fc16.x86_64 #1 SMP Sat Apr 14 00:31:23 UTC 2012 
x86_64 x86_64 x86_64 GNU/Linux
$ date
Sun Apr 22 09:27:10 NZST 2012
$





view thread (7+ messages)  latest in thread

Message-ID: <4F9326B4.6020900@archidevsys.co.nz>
Permalink:  ../4F9326B4.6020900@archidevsys.co.nz/
Also on:    postgresql.org/message-id/4F9326B4.6020900@archidevsys.co.nz

 · 

reply

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: GavinFlower@archidevsys.co.nz, tgl@sss.pgh.pa.us, eshkinkot@gmail.com
  Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz
  In-Reply-To: <4F9326B4.6020900@archidevsys.co.nz>
  References: <E1SLUU2-0004nB-1c@wrigleys.postgresql.org> <2165.1335030595@sss.pgh.pa.us> <4F9326B4.6020900@archidevsys.co.nz>

* 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