Domain Editor
Top  Previous  Next


The Domain Editor allows you to create new domains or name spaces and edit the existing ones (see How to create a domain and How to edit a domain). Note, that domains are supported only since PostgreSQL v7.3.

Domain  
 
The basic domain parameters are set on the Domain tab.

Name
Select the domain name space and set the domain name in the boxes.

Type
Select the domain data type from the drop-down list, and set its size, precision if required for the selected data type. To create an array of the chosen type use the Number of Array Dimensions box.

Default Value
Set the default value for the domain based field in the edit field.

Description  
 
On the Description tab you can set optional description of the domain. Click the Save Description button on the toolbar to save the description.

DDL  
 
On the DDL tab you can view the SQL text for creating the domain with the properties you set. This text can't be edited, but can be copied to the clipboard.

Button Default Size brings the window to the default size (restricted by the main window and the DB Explorer).

When you are done, click button Compile on the toolbar to start the process of compilation. The Compile Window will appear where you will be able to view and edit the result SQL statement for creating the new domain. Commit the transaction, and if it is successful, the new domain will be created or the domain parameters will be changed.

See also:
Table Editor
Schema Editor
View Editor
Function Editor
Rule Editor
Trigger Editor
Index Editor
Sequence Editor
Type Editor
Aggregate Editor
Operator Editor
Language Editor
Compile Window


Availability:
Windows Professional

Yes

Windows Lite

Yes

Linux Professional

Yes

Linux Lite

Yes