Re: Setting date and time - Mailing list pgsql-novice

From Tom Lane
Subject Re: Setting date and time
Date
Msg-id 24919.1075399207@sss.pgh.pa.us
Whole thread Raw
In response to Re: Setting date and time  (George Weaver <gweaver@shaw.ca>)
List 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 by date:

Previous
From: George Weaver
Date:
Subject: Re: Setting date and time
Next
From: Markus Bertheau
Date:
Subject: Re: Install or Bust - pgsql on Red Hat 9