Here's a proposed patch for the "=" issue. Whether or not we shouldrethink FDW validation behavior, doing so surely couldn't beback-patched. But I think this much should be.
regards, tom lane