Dimitri Fontaine <dfontaine@hi-media.com> writes:
> Le mercredi 29 octobre 2008, Tom Lane a écrit :
>> However, I see no
>> solution to that problem except function inlining; and if the function
>> gets inlined then all this discussion is moot anyhow.
> How to inline PLs functions?
All of this is pie-in-the-sky for PL functions, and I think properly so:
the whole reason for supporting PLs is to enable doing things that SQL
does poorly or not at all. So expecting SQL to interoperate very
closely with them seems impossible, or at least unreasonably limiting.
The real issue at hand is what to do with SQL-language functions.
I'm currently going to have a look at just what it would take to support
both lazy and eager evaluation in functions.c (independently of what
syntax, if any, we settle on to expose the choice to the user). If it's
either really awful or really easy we should know that before arguing
further.
regards, tom lane