"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> Description: DOMAIN definition too late in pg_dump
pg_dump ordering is a longstanding problem. It's fixed in CVS tip,
I believe, but the changes were too major to consider back-patching.
regards, tom lane