Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 3FE1B1EC3211 for ; Sat, 21 Apr 2012 18:30:00 -0300 (ADT) Received: from mbx.knossos.net.nz ([202.160.48.10]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SLhsS-00025q-Ht for pgsql-bugs@postgresql.org; Sat, 21 Apr 2012 21:30:00 +0000 Received: from [10.1.1.3] (60-234-150-59.bitstream.orcon.net.nz [60.234.150.59]) (authenticated bits=0) by mbx.knossos.net.nz (8.14.4/8.14.4) with ESMTP id q3LLTOj3008915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 22 Apr 2012 09:29:34 +1200 Message-ID: <4F9326B4.6020900@archidevsys.co.nz> Date: Sun, 22 Apr 2012 09:29:24 +1200 From: Gavin Flower Organization: ArchiDevSys User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Tom Lane CC: eshkinkot@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz References: <2165.1335030595@sss.pgh.pa.us> In-Reply-To: <2165.1335030595@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/130 X-Sequence-Number: 32881 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 $