Re: BUG #2198: Now returns always same date and time during a session - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #2198: Now returns always same date and time during a session
Date
Msg-id 6774.1138037353@sss.pgh.pa.us
Whole thread Raw
In response to BUG #2198: Now returns always same date and time during a session  ("Jacques Gollion" <jgollion@sambatechnologies.com>)
List pgsql-bugs
"Jacques Gollion" <jgollion@sambatechnologies.com> writes:
> The following functions returns the first time the right date and time but
> when called at several date and time returns the date that was returned at
> the first call.

Please read
http://www.postgresql.org/docs/8.1/static/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

> To get again the right date, it is necessary do disconnect and reconnect.

A fresh transaction is sufficient.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #2196: Useless RECHECK on RTREE index
Next
From: Michael Fuhr
Date:
Subject: Re: BUG #2198: Now returns always same date and time during a session