Re: [BUGS] Mismapping of Mountain Time

2011-03-04 Thread Dimitri Fontaine
Josh Berkus writes: > echo $TZ returns nothing. We've checked several Ubuntu systems, and it > seems that Ubuntu does not set $TZ. You can tweak that easily by editing /etc/postgresql/8.4/main/environment. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation

Re: [BUGS] Mismapping of Mountain Time

2011-03-03 Thread Tom Lane
Josh Berkus writes: >> It's not all that separate: per the Olsen database, >> >> Link America/Denver US/Mountain >> Link America/Denver Navajo > 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

Re: [BUGS] Mismapping of Mountain Time

2011-03-03 Thread Tom Lane
"Kevin Grittner" writes: > Tom Lane wrote: >> It's not all that separate: per the Olsen database, >> >> Link America/Denver US/Mountain >> Link America/Denver Navajo > Yeah, it gets complicated, since the State of Arizona ignores > Daylight Saving Time adjustments. On the ot

Re: [BUGS] Mismapping of Mountain Time

2011-03-03 Thread Josh Berkus
> 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 lik

Re: [BUGS] Mismapping of Mountain Time

2011-03-03 Thread Kevin Grittner
Tom Lane wrote: > Josh Berkus writes: >> 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

Re: [BUGS] Mismapping of Mountain Time

2011-03-03 Thread Jon Nelson
On Thu, Mar 3, 2011 at 5:10 PM, Tom Lane wrote: > Josh Berkus writes: >> echo $TZ returns nothing.  We've checked several Ubuntu systems, and it >> seems that Ubuntu does not set $TZ. > > Red Hat doesn't either; I think this is a general habit on Linux > distros. If you are using glibc, this is

Re: [BUGS] Mismapping of Mountain Time

2011-03-03 Thread Tom Lane
Josh Berkus writes: > echo $TZ returns nothing. We've checked several Ubuntu systems, and it > seems that Ubuntu does not set $TZ. Red Hat doesn't either; I think this is a general habit on Linux distros. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bug

Re: [BUGS] Mismapping of Mountain Time

2011-03-03 Thread Josh Berkus
On 3/3/11 2:31 PM, Josh Berkus wrote: > uname -a > Linux hemingway 2.6.32-25-server #44-Ubuntu SMP Fri Sep 17 21:13:39 UTC > 2010 x86_64 GNU/Linux > > date > Thu Mar 3 15:30:17 MST 2011 Also: echo $TZ returns nothing. We've checked several Ubuntu systems, and it seems that Ubuntu does not set

Re: [BUGS] Mismapping of Mountain Time

2011-03-03 Thread Tom Lane
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

[BUGS] Mismapping of Mountain Time

2011-03-03 Thread Josh Berkus
uname -a Linux hemingway 2.6.32-25-server #44-Ubuntu SMP Fri Sep 17 21:13:39 UTC 2010 x86_64 GNU/Linux date Thu Mar 3 15:30:17 MST 2011 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 = 'Tim