pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Mismapping of Mountain Time
Date: Thu, 03 Mar 2011 15:19:43 -0800
Message-ID: <4D70220F.1020408@agliodbs.com> (raw)
In-Reply-To: <9639.1299193420@sss.pgh.pa.us>
References: <4D7016AA.2090609@agliodbs.com>
	<9639.1299193420@sss.pgh.pa.us>


> 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



view thread (10+ messages)  latest in thread

Message-ID: <4D70220F.1020408@agliodbs.com>
Permalink:  ../4D70220F.1020408@agliodbs.com/
Also on:    postgresql.org/message-id/4D70220F.1020408@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us
  Subject: Re: Mismapping of Mountain Time
  In-Reply-To: <4D70220F.1020408@agliodbs.com>
  References: <4D7016AA.2090609@agliodbs.com> <9639.1299193420@sss.pgh.pa.us> <4D70220F.1020408@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox