Bruce Momjian <pgman@candle.pha.pa.us> writes:
> My question is whether you think "--" _inside_ quotes should be a
> comment. I don't think it should be.
It should be if plpgsql thinks it is. But that's not the problem here.
Doubling the quote marks would help...
regards, tom lane