Examples in this section up to interfacing indices can be found in complex.sql and complex.c .
Composite examples are in funcs.sql .
User-Defined Types 8.1.1. The output function takes the internal representation of the type and returns a null delimited character string. Suppose we want to define a complex type which represents complex numbers. These functions are usually not hard to write, especially the output function. However, there are a number of points to remember.