Determine the size of an opaque type
To save space in the database, you must lay out the internal representation of the opaque type as compactly as possible.
The database server stores values in its internal representation, so any C-language structure with padding between entries consumes unnecessary space. You must also decide whether your opaque data type is to be of fixed length or varying length. The following sections briefly describe each of these kinds of opaque types.