From: Ericson Smith <eric@did-it.com>
To: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Trying to profile a function, but weird stuff happens
Date: 14 May 2003 13:57:06 -0400
Message-ID: <1052935026.11798.18.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@did-it.com>
--
Ericson Smith <eric@did-it.com>
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@did-it.com
Subject: Re: Trying to profile a function, but weird stuff happens
In-Reply-To: <1052935026.11798.18.camel@localhost.localdomain>
References: <1052935026.11798.18.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