X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8CE374763D4 for ; Wed, 14 May 2003 13:57:03 -0400 (EDT) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with ESMTP id 14234-05 for ; Wed, 14 May 2003 13:57:02 -0400 (EDT) Received: from pop.e-it.com (pop.e-it.com [216.187.113.81]) by postgresql.org (Postfix) with SMTP id D0AF9476230 for ; Wed, 14 May 2003 13:57:01 -0400 (EDT) Received: (qmail 20726 invoked from network); 14 May 2003 17:57:00 -0000 Received: from unknown (HELO ?151.191.181.108?) (216.187.113.13) by 0 with SMTP; 14 May 2003 17:57:00 -0000 Subject: Trying to profile a function, but weird stuff happens From: Ericson Smith To: PostgreSQL Admin Content-Type: text/plain Organization: Message-Id: <1052935026.11798.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 14 May 2003 13:57:06 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/183 X-Sequence-Number: 8745 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 -- Ericson Smith