Creating Custom Types
PostgreSQL has support for creating custom types. When you need something more expressive than the built-in types and you don't want your data spread across multiple columns, you can instead create a custom type.
This new type can then be used in the definition of a new table
and when inserting data
See the create type
docs for more details.
Last updated