Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1BB7E47638B for ; Thu, 29 Aug 2002 10:15:56 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 4DC16476030 for ; Thu, 29 Aug 2002 10:15:55 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7TEEYZM026511; Thu, 29 Aug 2002 10:14:34 -0400 (EDT) To: Aaron Cc: pgsql-admin@postgresql.org Subject: Re: Time slowly goes out of sync Cygwin+windows+psotgres In-reply-to: <3D658765.5080603@netagi.com> References: <3D658765.5080603@netagi.com> Comments: In-reply-to Aaron message dated "Fri, 23 Aug 2002 10:52:53 +1000" Date: Thu, 29 Aug 2002 10:14:34 -0400 Message-ID: <26510.1030630474@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/350 X-Sequence-Number: 5464 Aaron writes: > Is postgres calculateing the time itself or reading of the machines clock? Postgres just asks the OS what time it is. I think you have an off-speed system clock crystal (lots of PC-grade hardware will gain or lose 10 minutes/month :-(). I don't know what test you are using to convince yourself that the OS time is correct when Postgres' time is different --- but I'll bet lunch you made a mistake. One other thing to watch for is that "SELECT now()" returns the time as of the start of the current transaction. If you said "begin" and then waited ten minutes you could get a 10-minute discrepancy. I doubt you did that, but it's something to be aware of. regards, tom lane