Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E17A912DEACC for ; Mon, 23 Apr 2012 10:23:01 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SMJEJ-0006cg-7F for pgsql-bugs@postgresql.org; Mon, 23 Apr 2012 13:23:01 +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 q3NDMgad006492; Mon, 23 Apr 2012 09:22:42 -0400 (EDT) To: Jochen Erwied cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz In-reply-to: <858616838.20120423072026@erwied.eu> References: <2165.1335030595@sss.pgh.pa.us> <858616838.20120423072026@erwied.eu> Comments: In-reply-to Jochen Erwied message dated "Mon, 23 Apr 2012 07:20:26 +0200" Date: Mon, 23 Apr 2012 09:22:42 -0400 Message-ID: <6491.1335187362@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/127 X-Sequence-Number: 32878 Jochen Erwied writes: > Saturday, April 21, 2012, 7:49:55 PM you wrote: >> 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? > One machine works, the other not: I traced though it far enough to find that pg_next_dst_boundary indexes off the end of an array when the given probe time is exactly the last DST transition time for the zone. So what's surprising is not that it fails weirdly, but that there seem to be numerous machines where it doesn't (appear to) fail. The next array slot must chance to have a sane value in some environments. regards, tom lane