Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 0B232B5F93B for ; Tue, 31 May 2011 23:53:55 -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 99908-06 for ; Wed, 1 Jun 2011 02:53:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 01452B5F97A for ; Tue, 31 May 2011 23:53:47 -0300 (ADT) 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 p512rlLb007039; Tue, 31 May 2011 22:53:48 -0400 (EDT) To: Craig Ringer cc: PG Hackers Subject: Re: [BUGS] BUG #6046: select current_date crashes postgres In-reply-to: <4DE59235.5000608@postnewspapers.com.au> References: <201105311728.p4VHSRbR063675@wwwmaster.postgresql.org> <4DE58F83.60207@postnewspapers.com.au> <4DE59235.5000608@postnewspapers.com.au> Comments: In-reply-to Craig Ringer message dated "Wed, 01 Jun 2011 09:13:25 +0800" Date: Tue, 31 May 2011 22:53:47 -0400 Message-ID: <7038.1306896827@sss.pgh.pa.us> From: Tom Lane 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/1677 X-Sequence-Number: 188711 Craig Ringer writes: > 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. This is the known problem with timezone abbreviations not being initialized correctly on Windows --- anything involving interpreting a "keyword" in datetime input will go belly up. See commits 2e82d0b39, e05b86644. regards, tom lane