I saw the following item in the TODO list
Functions:
* Add SPI_gettypmod() to return the typemod for a TupleDesc
What is the purpose of adding this function?