Mike Mascari <[EMAIL PROTECTED]> writes: > "Simple SQL functions can now be inlined by including their SQL in the > main query. This improves performance by eliminating per-call overhead. > That means simple SQL functions now behave like macros."
> has me a bit worried. What does "simple" mean? Not anything involving UNION :-( The basic intent of the current inlining facility is to support inlining of functions that return scalar results. I think that it punts entirely for functions that return SETOF anything; it certainly shouldn't be expected to do amazing feats of query optimization for them... You would probably have better results using views, if you can express your problems using views. Those do get "inlined" pretty well. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly