(And, if we are going to break everything
in sight, now would be a good time to think about changing typmod tosomething more flexible than one int32.)
As someone who is jamming geometry type, spatial reference number and dimensionality into said 32bit typmod, let me say emphatically ... Amen!
P