Thank you for your comment, but it doesn´t work in this way. Meantime I found the solution. You can avoid this problem through calling the function direct with:
SELECT myfunction(blah, blah)
In response to
Re: PL/PGSQL at 2003-02-28 06:00:51 from Mauri Sahlberg