Re: Incorrect date/time returned by current_timestamp - Mailing list pgsql-novice

From Oliver Elphick
Subject Re: Incorrect date/time returned by current_timestamp
Date
Msg-id 1023196094.22175.3541.camel@linda
Whole thread Raw
In response to Incorrect date/time returned by current_timestamp  ("Colin Mangiagalli" <colin@camara.co.za>)
List pgsql-novice
On Mon, 2002-06-03 at 14:22, Colin Mangiagalli wrote:
> Hi there
>
> I am using postgresql 7.2.1 with cygwin under W2K. I have noticed that
> when I start postmaster, current_timestamp
> returns the correct time, but as time goes by, the value returned by
> current_timestamp gets further and further
> from the current system time.
>
> Can someone please tell me why this is and what I can do to fix it.

Within one transaction, CURRENT_TIMESTAMP always returns the same time;
this is by design.  I have never used PostgreSQL under Windows, but I do
not think that there is anything Windows-specific about the behaviour
you are seeing; you must have a transaction open.

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C

     "But without faith it is impossible to please him; for
      he that cometh to God must believe that he is, and
      that he is a rewarder of them that diligently seek
      him."       Hebrews 11:6

Attachment

pgsql-novice by date:

Previous
From: "Chris Pizzo"
Date:
Subject: Question on joining tables
Next
From: Oliver Elphick
Date:
Subject: Re: Question on joining tables