Re: problem with timeofday() function in cvs PostgreSQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem with timeofday() function in cvs PostgreSQL
Дата
Msg-id 26568.1060355168@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: problem with timeofday() function in cvs PostgreSQL  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Список pgsql-general
Pavel Stehule <stehule@kix.fsv.cvut.cz> writes:
>> You probably want now() instead of that function.

> I can't use now() or others because I need actual time in transaction.

Just cast the result of timeofday() to timestamp (with time zone, likely).

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Martin Hart
Дата:
Сообщение: strategies for optimising common lookups etc
Следующее
От: "Eric Anderson Vianet SAO"
Дата:
Сообщение: unexpected chunk number