Alexander Soudakov <cygakob(at)gmail(dot)com> writes:
> Foreign table either defines row type. I simply added this type to
> hardcoded check.
Yeah, I think this was just an oversight. (You missed a spot in
plpgsql_parse_cwordtype, though.) Patch applied.
regards, tom lane