Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 2397C1EC3210 for ; Sat, 21 Apr 2012 14:50:15 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SLeRm-00075J-NC for pgsql-bugs@postgresql.org; Sat, 21 Apr 2012 17:50:14 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q3LHntEk002166; Sat, 21 Apr 2012 13:49:55 -0400 (EDT) To: eshkinkot@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz In-reply-to: References: Comments: In-reply-to eshkinkot@gmail.com message dated "Sat, 21 Apr 2012 07:11:50 -0000" Date: Sat, 21 Apr 2012 13:49:55 -0400 Message-ID: <2165.1335030595@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/123 X-Sequence-Number: 32874 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