When looking at something different, I happened to notice that pg_dump is a bit inconsistent in how it qualifies casts to pg_catalog entities like regclass and oid. Most casts are qualified, but not all. Even though it functionally is the same, being consistent is a good thing IMO and I can't see a reason not to, so the attached patch adds qualifications (the unqualified regclass cast in the TAP test left on purpose).
cheers ./daniel
pg_dump_casts.patch
Description: Binary data