Re: Measuring the execution time of functions within functions...

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Measuring the execution time of functions within functions...
Дата
Msg-id 20060403125047.GA7276@surnet.cl
обсуждение исходный текст
Ответ на Measuring the execution time of functions within functions...  (Mario Splivalo <mario.splivalo@mobart.hr>)
Список pgsql-performance
Mario Splivalo wrote:

> Since the function is written in plpgsql I tried to calculate the
> durations by using now() function, but realized that within the
> transaction now() always retunrs the same value.

Maybe you can use timeofday().

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Mario Splivalo
Дата:
Сообщение: Measuring the execution time of functions within functions...
Следующее
От: Jerry Sievers
Дата:
Сообщение: Re: Measuring the execution time of functions within functions...