Examples in this section up to interfacing indices can be found in complex.sql and complex.c .
Composite examples are in funcs.sql .
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. This is a particularly common problem when floating-point numbers are involved. Additionally, Postgres supports arrays of user-defined types as well.