X-Original-To: pgsql-performance@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 555E8475F0D for ; Tue, 29 Apr 2003 10:28:27 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 7975647631F for ; Tue, 29 Apr 2003 10:27:51 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h3TERtU6026414; Tue, 29 Apr 2003 10:27:55 -0400 (EDT) To: Rajesh Kumar Mallah Cc: pgsql-performance@postgresql.org Subject: Re: profiling plpgsql functions.. In-reply-to: <200304291655.01035.mallah@trade-india.com> References: <200304291655.01035.mallah@trade-india.com> Comments: In-reply-to Rajesh Kumar Mallah message dated "Tue, 29 Apr 2003 16:55:01 +0530" Date: Tue, 29 Apr 2003 10:27:55 -0400 Message-ID: <26413.1051626475@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-27.8 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,NO_DNS_FOR_FROM, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/245 X-Sequence-Number: 1751 Rajesh Kumar Mallah writes: > Is printing timeofday() at various points a good idea > of profiling plpgsql functions? Sure. > also is anything wrong with following fragment ? > RAISE INFO '' % , message here ... '' , timeofday() ; IIRC, RAISE is pretty slovenly implemented :-( ... it will only take plain variable references as additional arguments. So you'll have to do var := timeofday(); RAISE INFO ''... '', var; I believe timeofday() produces TEXT, so declare the var that way. regards, tom lane