Thread: clarification..

clarification..

From
Dhanaraj M
Date:
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?

Re: clarification..

From
Bruce Momjian
Date:
Dhanaraj M wrote:
[ Charset ISO-8859-1 unsupported, converting... ]
>
> 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?

It allows SPI functions to query the Tuple's typemod values, rather than
groveling through the structure.  I am not sure how that would be done.


--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +