"Christian Kindler" <christian(dot)kindler(at)gmx(dot)net> writes:
> -- move -1 in cur1;
plpgsql supports that in CVS HEAD (8.3-to-be) but not in any existing
release. You'll need to rethink your logic or do this from your
application rather than within plpgsql.
regards, tom lane