postgresql.org
Current
A composite type is essentially the same as the row type of a table, but using CREATE TYPE avoids the need to create an actual table when all that is wanted is to define a type. A stand-alone composite type is useful, for example, as the argument or return type of a function. ... PostgreSQL allows user-defined types to take one or more simple ...