Updating timezone setting

Поиск
Список
Период
Сортировка
От Keith Fiske
Тема Updating timezone setting
Дата
Msg-id CAG1_KcAs+_PofD7uSEg5-5oRrCB_ngmxDEyTWtxWfMcmS4pQBg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Updating timezone setting  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Discovered that a client of ours had assumed their database was running in UTC, but turned out to be running in 'US/Eastern'. They had changed all their systems a while ago to run in UTC but didn't realize the database was independent of that. The postgresql.conf has

timezone = 'US/Eastern'

set in it. It also looks like they have all their timestamp columns set to "timestamp without time zone". But their application has been running in UTC, so the times being inserted are the time in UTC. So when queries are run locally in pql, they appear to be ahead of now(), which would be expected.

They'd like to get this fix, at least so that the database is running in UTC. Is there any issue with just changing the postgresql.conf timezone to GMT and restarting? All of their applications are inserting time in UTC anyway, and have been for as long as they can remember.

Would there be any issues then just leaving the columns as "timestamp without time zone"? I know that's not ideal, but that would be a big project to try and convert every single one of those columns.

Thanks,

--
Keith Fiske
Database Administrator
OmniTI Computer Consulting, Inc.
http://www.keithf4.com

В списке pgsql-general по дате отправления:

Предыдущее
От: David G Johnston
Дата:
Сообщение: Re: SSL Certificates in Postgres 9.3 and Windows 7
Следующее
От: Vinay Gupta
Дата:
Сообщение: Concat bigint Array Values in a Function