Re: Time at end of transaction

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Time at end of transaction
Дата
Msg-id 416D1F18.2000201@archonet.com
обсуждение исходный текст
Ответ на Time at end of transaction  (Phil Endecott <spam_from_postgresql_general@chezphil.org>)
Список pgsql-general
Phil Endecott wrote:
> Dear All,
>
> Within a transaction, now() and current_timestamp are constant and give
> the time that the transaction started.  This is normally what you want.
>  But I have a case where I actually need the time that the transaction
> is committed, or something similar.  Is there a way to get it?  Here is
> the problem:

You want timeofday() - see the "date/time functions" section of the
manuals. Note that it returns text not timestamptz.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: "Bob Powell"
Дата:
Сообщение: Management software for Postgresql
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Management software for Postgresql