"Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> writes:
> RETURN QUERY should be implemented for lazy execution model. And it
> should be fast and not to much dificult.
Really? Consider what happens if it's inside a loop, or an exception
block, or any other nesting construct.
regards, tom lane