Re: BUG #2198: Now returns always same date and time during a session

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jacques Gollion" <jgollion(at)sambatechnologies(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2198: Now returns always same date and time during a session
Date: 2006-01-23 17:29:13
Message-ID: 6774.1138037353@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Jacques Gollion" <jgollion(at)sambatechnologies(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Brandon Black 2006-01-23 17:34:27 BUG #2204: Feature Req: Unique output column names
Previous Message Tom Lane 2006-01-23 17:26:04 Re: BUG #2196: Useless RECHECK on RTREE index