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

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Mario Splivalo <mario(dot)splivalo(at)mobart(dot)hr>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Measuring the execution time of functions within functions...
Date: 2006-04-03 12:50:47
Message-ID: 20060403125047.GA7276@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jerry Sievers 2006-04-03 16:32:09 Re: Measuring the execution time of functions within functions...
Previous Message Mario Splivalo 2006-04-03 09:42:19 Measuring the execution time of functions within functions...