pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ericson Smith <eric@briefme.com>
To: pgsql-admin@postgresql.org
Subject: Trying to profile my function, but...
Date: 14 May 2003 13:43:33 -0400
Message-ID: <1052934212.11784.15.camel@localhost.localdomain> (raw)

Hi,

I'm trying to figure out how long my function is taking to run, but it
keeps returning identical start and stop times. Here's a segment...

	seg := date_part(''second'', now())::float;
	
	FOR rec IN SELECT qcounter FROM tlogs_queue LOOP
	  blah, blah, blah
	END LOOP;
	
	secs := date_part(''second'', now())::float;
	
	RAISE NOTICE ''Start %'', seg;
	RAISE NOTICE ''End   %'', secs;

seg and secs are the exact same number. Any pointers would be much
appreciated.

- Ericson Smith
eric@did-it.com
http://www.did-it.com

-- 
Ericson Smith <eric@briefme.com>




Message-ID: <1052934212.11784.15.camel@localhost.localdomain>
Permalink:  ../1052934212.11784.15.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1052934212.11784.15.camel@localhost.localdomain

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: eric@briefme.com
  Subject: Re: Trying to profile my function, but...
  In-Reply-To: <1052934212.11784.15.camel@localhost.localdomain>
  References: <1052934212.11784.15.camel@localhost.localdomain>

* 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