Pavel Stehule <pavel.stehule@gmail.com> writes:
> for typmod others then -1 we should to use IO cast - but we should to
> check, if it's one from known casts.
I still think it's fundamentally wrong to be treating typmod -1 so
differently from other typmods. If this behavior is sane at all then
it should work in both cases.
regards, tom lane