Editing Domain General

Underlying Type Category
Choose the underlying data type category: Base Type, Composite Type, Enum Type and Domain.

Note: Support from PostgreSQL 8.2 or later.

Underlying Type Schema
Select schema of the underlying data type.

Underlying Type
Select the underlying data type of the domain from the drop-down list.

Dimensions
The dimensions of array specifiers.

Length and Scale
Use the Length edit box to define the length of the field and use Scale edit box to define the number of digits after the decimal point. (if required for the selected data type)

Default
The DEFAULT clause specifies a default value for columns of the domain data type. The value is any variable-free expression (but subqueries are not allowed). The data type of the default expression must match the data type of the domain. If no default value is specified, then the default value is the null value.

The default expression will be used in any insert operation that does not specify a value for the column. If a default value is defined for a particular column, it overrides any default associated with the domain. In turn, the domain default overrides any default value associated with the underlying data type.

Not null
Values of this domain are not allowed to be null.

Owner
The owner of the domain function. The user who defines a domain becomes its owner.

Note: Support from PostgreSQL 7.4 or later.