DOMAIN
is one of the object types in a relational database.A domain is created as a specific data type with attributes attached to it (think of attributes like length, precision or scale, nullability, check constraints).Once a domain has been defined in the database, it can be reused repeatedly to define table columns, PSQL arguments and PSQL local variables.Those objects inherit all attributes of the domain.Some attributes can be overridden when the new object is defined, if required.
This section describes the syntax of statements used to create, alter and drop domains.A detailed description of domains and their usage can be found in Custom Data Types — Domains.