pgsql-bugs@postgresql.org writes:
> The problem occurs for new data types:
> When pg_dump is called, sometimes the CREATE TYPE is dumped before
> input/output functions are dumped. This makes a restore impossible.
I believe this was fixed about two weeks ago. Are you sure you are
using 7.1 final release, not some beta version?
regards, tom lane