pgsql: Fix identify_system_timezone() so that it tests the behavior of

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix identify_system_timezone() so that it tests the behavior of
Date: 2008-07-01 03:40:55
Message-ID: 20080701034055.C5D61754857@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix identify_system_timezone() so that it tests the behavior of the system
timezone setting in the current year and for 100 years back, rather than
always examining years 1904-2004. The original coding would have problems
distinguishing zones whose behavior diverged only after 2004; which is a
situation we will surely face sometime, if it's not out there already.

In passing, also prevent selection of the dummy "Factory" timezone, even
if that's exactly what the system is using. Reporting time as GMT seems
better than that.

Modified Files:
--------------
pgsql/src/timezone:
pgtz.c (r1.59 -> r1.60)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/timezone/pgtz.c?r1=1.59&r2=1.60)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-07-01 03:41:01 pgsql: Fix identify_system_timezone() so that it tests the behavior of
Previous Message Tom Lane 2008-07-01 02:09:34 pgsql: Teach autovacuum how to determine whether a temp table belongs to