Re: now() in loop statement

Поиск
Список
Период
Сортировка
От Tomasz Myrta
Тема Re: now() in loop statement
Дата
Msg-id 3F783022.8030207@klaster.net
обсуждение исходный текст
Ответ на now() in loop statement  (Kerv <keresztes_m@yahoo.com>)
Список pgsql-sql
> Hello,
> 
> What is wrong with this function because the mytime variable contain the 
> same value in each iteration:

Just like it should be.
now() gives you always the same value inside single transaction. If you 
need time for performance tests - use "timeofday".

Regards,
Tomasz Myrta



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

Предыдущее
От: Kerv
Дата:
Сообщение: now() in loop statement
Следующее
От: Christoph Haller
Дата:
Сообщение: Re: now() in loop statement