X-Original-To: pgsql-hackers-win32-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 275A2D8FD9 for ; Thu, 15 Sep 2005 13:37:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73345-02 for ; Thu, 15 Sep 2005 16:37:27 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 51A5ED8FD6 for ; Thu, 15 Sep 2005 13:37:26 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j8FGbOV9014830; Thu, 15 Sep 2005 12:37:24 -0400 (EDT) To: Andrew Dunstan Cc: Lane Van Ingen , "Obe, Regina DND\\MIS" , pgsql-hackers-win32@postgresql.org Subject: Re: Server Time Setting In-reply-to: <43299C3E.50603@dunslane.net> References: <14438.1126799474@sss.pgh.pa.us> <43299C3E.50603@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Thu, 15 Sep 2005 12:07:26 -0400" Date: Thu, 15 Sep 2005 12:37:24 -0400 Message-ID: <14829.1126802244@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/31 X-Sequence-Number: 3397 Andrew Dunstan 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