Re: now() gives same time within the session

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: now() gives same time within the session
Дата
Msg-id AANLkTik63BqTleBeJHJLMoZU59eqnKVm_wwDVO_avuYN@mail.gmail.com
обсуждение исходный текст
Ответ на Re: now() gives same time within the session  (Rob Wultsch <wultsch@gmail.com>)
Список pgsql-performance
On 12 July 2010 14:11, Rob Wultsch <wultsch@gmail.com> wrote:
> On Mon, Jul 12, 2010 at 4:15 AM, A. Kretschmer
> <andreas.kretschmer@schollglas.com> wrote:
>> In response to Atul.Goel@globaldatapoint.com :
>>> Hi,
>>>
>>>
>>>
>>> I need to log the start and end time of the procedures in a table. But the
>>> start and end time are same. This is how I recreated the issue.
>>>
>>>
>>>
>>> create table test_time (time timestamp);
>>>
>>> delete from  test_time;
>>>
>>> insert into test_time select now();
>>
>>
>> Use timeofday() instead, now() returns the transaction starting time.
>
>
> Is this part of the SQL standard?
>

I don't believe it is.  See
http://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT
for more info.

Thom

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

Предыдущее
От: Rob Wultsch
Дата:
Сообщение: Re: now() gives same time within the session
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: now() gives same time within the session