Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A82D6133655C for ; Thu, 3 Mar 2011 19:19:54 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 51513-07 for ; Thu, 3 Mar 2011 23:19:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail149046.authsmtp.co.uk (outmail149046.authsmtp.co.uk [62.13.149.46]) by mail.postgresql.org (Postfix) with ESMTP id 0AB4E1337BE0 for ; Thu, 3 Mar 2011 19:19:46 -0400 (AST) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt12.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p23NJkDk060744; Thu, 3 Mar 2011 23:19:46 GMT Received: from Sidney-Stratton.local (dsl081-245-111.sfo1.dsl.speakeasy.net [64.81.245.111]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p23NJhXM020947; Thu, 3 Mar 2011 23:19:44 GMT Message-ID: <4D70220F.1020408@agliodbs.com> Date: Thu, 03 Mar 2011 15:19:43 -0800 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: Mismapping of Mountain Time References: <4D7016AA.2090609@agliodbs.com> <9639.1299193420@sss.pgh.pa.us> In-Reply-To: <9639.1299193420@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: b9e8032a-45ec-11e0-ab46-001185d377ca X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQL c1ACdR12OUdbHwkA AnYJWF5VWVd1XC1z bxRZbBtfZk9QXgRr T0pMQFdNFEsoAx9/ fEZ2LxlwdwxCfzBz YUFiECJSCUx6dkQs X0pRQD4bZGY1aH1O AkReagNUcQJCe0tG bVcsBT1vNG8XDQgF MDQGdxUwJjBWMDxU RA5FKlxaZEEWGCI1 RhZKITQqECUa X-Authentic-SMTP: 61633136333939.1000:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201103/85 X-Sequence-Number: 29595 > It's not all that separate: per the Olsen database, > > Link America/Denver US/Mountain > Link America/Denver Navajo > > Those are all aliases for the exact same timezone behavior, and PG > doesn't have any good way to choose which one you think is preferred. > It looks like it chooses the shortest name ... so in this case you'll > get Navajo. If you don't like that, set the timezone setting > explicitly or via the TZ environment variable for the postmaster. What's more my concern is that Ubuntu, Debian and Red Hat do not set $TZ, so we'll get this kind of behavior on most Linux systems with a default install of PostgreSQL. Since it's confusing to users (and will result in other such bug reports and/or complaints), it would be nice to do something to pick time zones which is more likely to result in unsurprising values of Show TimeZone. (This issue was reported by a customer as a bug to us) I'll give some thought as to how we could do so, and maybe add it to the TODO list. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com