Re: now() gives same time within the session

Поиск
Список
Период
Сортировка
От Rob Wultsch
Тема Re: now() gives same time within the session
Дата
Msg-id AANLkTil1a9TlztQSZEGuCeI0QUc5dq7yj84fQFmh851O@mail.gmail.com
обсуждение исходный текст
Ответ на Re: now() gives same time within the session  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Ответы Re: now() gives same time within the session  (Thom Brown <thombrown@gmail.com>)
Re: now() gives same time within the session  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: now() gives same time within the session  (Kenneth Marshall <ktm@rice.edu>)
Список pgsql-performance
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?

--
Rob Wultsch
wultsch@gmail.com

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Pooling in Core WAS: Need help in performance tuning.
Следующее
От: Thom Brown
Дата:
Сообщение: Re: now() gives same time within the session