Skip site navigation (1) Skip section navigation (2)

Re: profiling plpgsql functions..

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: profiling plpgsql functions..
Date: 2003-04-29 14:27:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Rajesh Kumar Mallah <mallah(at)trade-india(dot)com> writes:
> Is printing timeofday() at various points a good idea
> of profiling plpgsql functions?


> 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

		var := timeofday();
		RAISE INFO ''... '', var;

I believe timeofday() produces TEXT, so declare the var that way.

			regards, tom lane

In response to


pgsql-performance by date

Next:From: Tom LaneDate: 2003-04-29 14:53:13
Subject: Re: Query Plan far worse in 7.3.2 than 7.2.1
Previous:From: Tom LaneDate: 2003-04-29 14:18:19
Subject: Re: Optimizer not using index when it should

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group