pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Mario Splivalo <mario.splivalo@mobart.hr>
Cc: pgsql-performance@postgresql.org
Subject: Re: Measuring the execution time of functions within functions...
Date: Mon, 3 Apr 2006 08:50:47 -0400
Message-ID: <20060403125047.GA7276@surnet.cl> (raw)
In-Reply-To: <1144057339.20123.18.camel@localhost.localdomain>
References: <1144057339.20123.18.camel@localhost.localdomain>

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



view thread (3+ messages)  latest in thread

Message-ID: <20060403125047.GA7276@surnet.cl>
Permalink:  ../20060403125047.GA7276@surnet.cl/
Also on:    postgresql.org/message-id/20060403125047.GA7276@surnet.cl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: alvherre@commandprompt.com, mario.splivalo@mobart.hr
  Subject: Re: Measuring the execution time of functions within functions...
  In-Reply-To: <20060403125047.GA7276@surnet.cl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox