We have a function with computations made under temp tables. we tried to get time taken under each action like aggregation, update .the raise function is not being called
Without a reproducible case it is not possible to determine what the problem might be.