Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> It looks like the type input function may be a problem, because it
> doesn't look like it knows what the collation is yet. In other words,
> PG_GET_COLLATION() is zero for the type input function.
Yeah, we've assumed that I/O functions do not need to know collation.
regards, tom lane