Re: Setting date and time

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: George Weaver
Дата:
Сообщение: Re: Setting date and time
Следующее
От: Markus Bertheau
Дата:
Сообщение: Re: Install or Bust - pgsql on Red Hat 9