Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> Right now typmod is already passed to all those layers, right? Would it
> be a useful intermediate step to use typmod to hold this information for
> the text type?
No, it would not, because typmod doesn't propagate through functions.
regards, tom lane