>
> As the code stands plpgsql will try to issue something like
>
> UPDATE/DELETE ... WHERE CURRENT OF $1
>
> Since we don't try to do anything with the cursor name until runtime,
> it seems that this would work if we allowed a parameter symbol there.
> Offhand that doesn't look hard.
>
I tested it. It's great. Thank You
Pavel Stehule