"Robert B. Easter" <reaster(at)comptechnews(dot)com> writes:
> Is this a pg_dump bug or is there there some way to do this right?
It's a pg_dump bug --- pg_dump knows how to quote special characters
in string literals, but failed to do so for function bodies
(and a number of other places too). I've committed a fix.
regards, tom lane