"Keith Worthington" <keithw(at)narrowpathinc(dot)com> writes:
> I am afraid I cannot see the
> forest through the trees. Can someone point out the error of my ways?
I think you're missing a semicolon at the end of the PERFORM.
plpgsql's syntax error reporting kinda sucks :-(. There are some
proposals afoot to improve it in 8.1 ...
regards, tom lane