Write support functions

The support functions for an opaque data type are a set of well-defined, data type specific functions that the database server automatically invokes. Typically, these functions are not explicitly invoked in an SQL statement.