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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2198: Now returns always same date and time during a session
Дата
Msg-id 6774.1138037353@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2198: Now returns always same date and time during a session  ("Jacques Gollion" <jgollion@sambatechnologies.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2196: Useless RECHECK on RTREE index
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #2198: Now returns always same date and time during a session