> The error sounds suspiciously like what would happen if you tried to
> use RETURN QUERY in a pre-8.3 version.
>
> regards, tom lane
>
Thanks a lot to all. Actually there were a mass of errors in my
function. Now I rewrite it so as it works. It would be much more
complicated to achieve my goal without your advices.