Internal C structure for the user-defined data type

In summary, although the internal C structure for the user-defined data type can be anything the developer wants it to be, the following two rules must be true if columns of this data type are to be indexed with the R-tree access method:
  • The data structure must support both the actual data object and its bounding box.
  • Only one C data structure can be defined for the internal representation of the user-defined data.

    The same data structure must be passed to all functions that accept the user-defined data type as an argument. Examples of such functions are the support and strategy functions that maintain the R-tree index.