I don't disagree with adding FOREIGN, though.
Your patch is failing the pg_dump TAP tests. Please useconfigure --enable-tap-tests, fix the problems, then resubmit.
Fixed, I've attached a new version.
CheersLuis M Carril