Jan Wieck <JanWieck(at)Yahoo(dot)com> writes:
> That eliminated, a cast should be dumped if one or more of the three
> objects (source, target and function) are not builtin AND all the
> non-builtin objects belong to namespaces included in the dump.
Where "builtin" is defined as "belongs to pg_catalog schema", you mean?
I think that works for me ...
regards, tom lane