Re: [PERFORM] How to analyze function performance

2006-06-15 Thread Tom Lane
"Mindaugas" <[EMAIL PROTECTED]> writes: > Is it possible to somehow analyze function performance? E.g. > we are using function cleanup() which takes obviously too much time > to execute but I have problems trying to figure what is slowing things > down. > When I explain analyze function lines

Re: [PERFORM] How to analyze function performance

2006-06-15 Thread Tomas Vondra
It depends what is the purpose of the function. If it's mainly a container for a heap of SQL queries along with some simple IF, ELSE etc. then I use two simple ways to analyze the performance (or lack of performance): 1) I use a lot of debug messages 2) I print out all SQL and the execute EXPLAIN

[PERFORM] How to analyze function performance

2006-06-15 Thread Mindaugas
Hello, Is it possible to somehow analyze function performance? E.g. we are using function cleanup() which takes obviously too much time to execute but I have problems trying to figure what is slowing things down. When I explain analyze function lines step by step it show quite acceptable p