From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Lane Van Ingen <lvaningen@ESNCC.com>
Cc: Obe, Regina DND\\MIS <robe.dnd@cityofboston.gov>
Cc: pgsql-hackers-win32@postgresql.org
Subject: Re: Server Time Setting
Date: Thu, 15 Sep 2005 12:37:24 -0400
Message-ID: <14829.1126802244@sss.pgh.pa.us> (raw)
In-Reply-To: <43299C3E.50603@dunslane.net>
References: <EKEMKEFLOMKDDLIALABIKEJOCCAA.lvaningen@esncc.com>
<14438.1126799474@sss.pgh.pa.us>
<43299C3E.50603@dunslane.net>
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> Should pgtz.c try to detect this situation and handle it by mapping to a
>> non-DST-aware internal timezone?
> I think this is a simple case of misconfiguration and I suspect fiddling
> with it would just open up the possibility of more errors.
Maybe. The other thing that's worrisome here is the likelihood that
people would fiddle with the setting after starting Postgres; which
is a scenario we really can't do much about, but AFAICS it would have
the same effect that now() would deviate from what the system clock
is showing.
I'm not sure it's worth the trouble to try to handle the "box not
checked" case fully --- as you say, anyone who's handling DST by
manually adjusting the system clock twice a year is going to lose
anyway. But if we can detect that setting easily, maybe we could just
insist that it match the behavior we're expecting (ie, fail to find a
matching timezone and complain about it)? It seems to me better that
there be an obvious failure immediately than that the system appear to
work only to start giving wrong answers after the next time change.
regards, tom lane
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-hackers-win32@postgresql.org
Cc: tgl@sss.pgh.pa.us, andrew@dunslane.net, lvaningen@ESNCC.com, robe.dnd@cityofboston.gov
Subject: Re: Server Time Setting
In-Reply-To: <14829.1126802244@sss.pgh.pa.us>
References: <EKEMKEFLOMKDDLIALABIKEJOCCAA.lvaningen@esncc.com> <14438.1126799474@sss.pgh.pa.us> <43299C3E.50603@dunslane.net> <14829.1126802244@sss.pgh.pa.us>
* 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