Choose your database:
MS SQL Server
SQL Anywhere

Subscribe to our news:
Armin Braunstein: "Also I must say, that your PostgreSQL Maestro tool is the best tool for PostgreSQL I have seen. For general I am really happy about the tool and how it works".
Jad Cooper: "Your program is the best. I have only few hours but now I make very great data for my meeting".


Add your opinion

PostgreSQL Maestro online Help

Prev Return to chapter overview Next

Create Domain Wizard

New Domains are created within Create Domain Wizard. In order to run the wizard you should either


select the Object | Create Database Object... main menu item;
select the Domain icon in the Create Database Object dialog


select the Domains list or any object from that list in the explorer tree;
select the Create New Domain... item from the popup menu


open Schema Editor and the Domains tab there;
press the Insert key or select the Create New Domain item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar).


To create a new Domain with the same properties as one of the existing Domains has:


select the Object | Duplicate Database Object... main menu item;
follow the instructions of Duplicate Object Wizard.

The basic principles of Create Object Wizards in PostgreSQL Maestro are explained in a separate topic. Below you will find a description of wizard steps that are unique for the current object.


Specify the properties for the new Domain according to your needs. The detailed description is given below.



Specify a name for the domain.



Select the owner of the Domain from the drop-down list. By default, only the owner of an object can perform various operations with the object. In order to allow other users to operate it, privileges must be granted. (However, users that have the superuser attribute can always access any object.)



Supply a comment to the Domain if necessary.


Data Type

Select the underlying data type for the Domain. This may include array specifiers.


Not Null

The checkbox indicates that the values of the Domain are not allowed to be null.



Use the field to specify the sort order and character classification behavior of data. If no collation is specified, the underlying data type's default collation is used.


Default Value

The field is used to specify a default value for the columns of the domain data type. The field value may contain any variable-free expression (however, 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.


Use popup menu to add a new check and set its properties in Check Properties modal window. You can also use the popup menu items to edit or delete the checks of domain being created.

Prev Return to chapter overview Next