Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 18C1C1337B54 for ; Thu, 3 Mar 2011 19:03:57 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 08726-06 for ; Thu, 3 Mar 2011 23:03:50 +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 830C91337B3E for ; Thu, 3 Mar 2011 19:03:49 -0400 (AST) 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 p23N3eTD009640; Thu, 3 Mar 2011 18:03:40 -0500 (EST) To: Josh Berkus cc: pgsql-bugs@postgresql.org Subject: Re: Mismapping of Mountain Time In-reply-to: <4D7016AA.2090609@agliodbs.com> References: <4D7016AA.2090609@agliodbs.com> Comments: In-reply-to Josh Berkus message dated "Thu, 03 Mar 2011 14:31:06 -0800" Date: Thu, 03 Mar 2011 18:03:40 -0500 Message-ID: <9639.1299193420@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: 201103/80 X-Sequence-Number: 29590 Josh Berkus writes: > ls -l localtime > lrwxrwxrwx 1 root root 31 2010-10-18 08:20 localtime -> > /usr/share/zoneinfo/US/Mountain > postgres=# select * from pg_settings where name = 'TimeZone'; > setting | Navajo > There is actually a time zone "Navajo", which is a *separate* time zone > from US/Mountain. Ideas on how this happened? 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. regards, tom lane