Re: Server Time Setting
От | Tom Lane |
---|---|
Тема | Re: Server Time Setting |
Дата | |
Msg-id | 14829.1126802244@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Server Time Setting (Andrew Dunstan <andrew@dunslane.net>) |
Список | pgsql-hackers-win32 |
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
В списке pgsql-hackers-win32 по дате отправления: