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 Lane||Date: 2003-04-29 14:53:13|
|Subject: Re: Query Plan far worse in 7.3.2 than 7.2.1 |
|Previous:||From: Tom Lane||Date: 2003-04-29 14:18:19|
|Subject: Re: Optimizer not using index when it should |