Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
> As of the latest pg_dump, it dumps in modified oid order: rules, triggers,
> views and indexes always go at end, but the rest is in oid order.
Hmm, I think you need to dump views in OID order just as though they
were tables. What if an SQL function refers to a view?
Those other categories seem safe to handle this way, though.
regards, tom lane