=?iso-8859-2?Q?Egy=FCd_Csaba?= <csegyud(at)vnet(dot)hu> writes:
> When I copy it into the console (psql) it runs well, but from function it
> sends an error:
> ERROR: cannot open multi-query plan as cursor
> What does it mean? Could anybody help me?
I think most likely it means you made a typo transcribing the query into
the function. If you can't figure it out, show us the whole function
definition ...
regards, tom lane