Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id BF596B61467 for ; Tue, 31 May 2011 22:13:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 86179-06 for ; Wed, 1 Jun 2011 01:13:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id D56F2B613CC for ; Tue, 31 May 2011 22:13:35 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id E431810D for ; Tue, 31 May 2011 21:13:35 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id O5lHEHTwM0yq for ; Tue, 31 May 2011 21:13:35 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id DC7F32D for ; Tue, 31 May 2011 21:13:34 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id E6DA4AEC14 for ; Wed, 1 Jun 2011 09:13:33 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WpGOjxjOhHxd for ; Wed, 1 Jun 2011 09:13:28 +0800 (WST) Received: from [10.1.1.3] (unknown [124.169.247.86]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id ACC1FAEC0D for ; Wed, 1 Jun 2011 09:13:28 +0800 (WST) Message-ID: <4DE59235.5000608@postnewspapers.com.au> Date: Wed, 01 Jun 2011 09:13:25 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: PG Hackers Subject: Re: [BUGS] BUG #6046: select current_date crashes postgres References: <201105311728.p4VHSRbR063675@wwwmaster.postgresql.org> <4DE58F83.60207@postnewspapers.com.au> In-Reply-To: <4DE58F83.60207@postnewspapers.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/1671 X-Sequence-Number: 188705 On 1/06/2011 9:01 AM, Craig Ringer wrote: > Is anyone aware of any changes between 9.0 and 9.1beta that messed with > time zone handling and loading? By the way, it looks like using any of: SELECT 'now'::timestamp; SELECT 'now'::timestamptz; SELECT current_time; SELECT current_date; SELECT localtime; SELECT localtimestamp; SELECT CAST( now() AS date ); will also trigger a crash. However, none of these statements do: SELECT current_timestamp; SELECT now(); SELECT now() :: timestamptz; SELECT now() :: timestamp; -- Craig Ringer Tech-related writing at http://soapyfrogs.blogspot.com/