Re: Measuring the execution time of functions within functions... - Mailing list pgsql-performance

From Alvaro Herrera
Subject Re: Measuring the execution time of functions within functions...
Date
Msg-id 20060403125047.GA7276@surnet.cl
Whole thread Raw
In response to Measuring the execution time of functions within functions...  (Mario Splivalo <mario.splivalo@mobart.hr>)
List 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 by date:

Previous
From: Mario Splivalo
Date:
Subject: Measuring the execution time of functions within functions...
Next
From: Jerry Sievers
Date:
Subject: Re: Measuring the execution time of functions within functions...