Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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