In a model based on PostgreSQL target server, use the PostgreSQL tab in the Domain Editor to manage the data type, null option, and other properties for the selected domain.
Note: The options described here are the basic options available for most physical data types. There can be more options available depending on the physical data type you assign to the domain. For more information about using these properties, refer to PostgreSQL documentation.
To define a PostgreSQL domain
The PostgreSQL Domain Dictionary editor opens.
Note: Click New on the toolbar to create a domain. Use the Enter filter text box to filter a large list of domains to quickly locate the one that you want to define.
Specifies the physical name of the domain. Change the physical name of the domain in this field.
Lets you select a domain from the list to attach it to the selected domain as a parent.
Lets you select a data type from the drop-down list to apply to the selected domain. If the selected data type requires a value for precision, scale, or both, enter the value inside the data type parentheses. For example, you can select the DECIMAL() data type and specify a precision of 2 and a scale of 10 inside the parentheses to assign the data type DECIMAL(2,10) to the selected domain.
Specifies the schema of the database to which the domain belongs. Select the schema from the drop-down list or click New to create one.
Specifies whether the domain is suppressed from a logical model and appears in a physical model only.
Specifies the role or user that owns the domain. Select the owner from the drop-down list or click New to create one.
Specifies the schema of the database to which the domain belongs. Select the schema from the drop-down list or click New to create one.
Specifies an optional collation for the domain. If no collation is specified, the underlying data type's default collation is used. The underlying type must be collatable if COLLATE is specified.
Specifies the usage of the NULL clause for the selected domain. You can choose to inherit or override the null option.
Specifies a default value for columns of the domain data type. The value is any variable-free expression (but sub-queries 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 domain is defined and the PostgreSQL Domain Dictionary editor closes.
Copyright © 2017 erwin Inc.
All rights reserved.
|
|