| От | Tom Lane |
|---|---|
| Тема | Re: Setting date and time |
| Дата | |
| Msg-id | 24919.1075399207@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Setting date and time (George Weaver <gweaver@shaw.ca>) |
| Список | pgsql-novice |
George Weaver <gweaver@shaw.ca> writes:
> I am running version 7.3.2 on Windows XP.
> If I change the system date to a different date on the PC, and query the
> database (Select current_date), the result I get is the date on the system
> relative to when postmaster started as a service, not the new date on the
> PC. Am I missing something really obvious?? : (
Hm, you're running PG under Cygwin then? This must be a Cygwin issue.
Postgres itself gets the time from the operating system at the start of
each transaction, and it's going to believe whatever the Cygwin
implementation of gettimeofday() tells it.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера