Type Editor
Top  Previous  Next


The Type Editor allows you to create new types and to edit the existing ones (see How to create a type and How to edit a type).

Type  
 
The main type parameters are set on the Type tab.

Name
Set the name of the new type in the edit field

Synonym
Set the type synonym.

Input Function and Output Function
These drop-down lists allow you to select the input and output functions for the type from the list of all database functions.

Internal Length and Variable
Set the internal type length or check the Variable option next to the edit field if the type length is unknown.

Element
If current type is the array-type, then you should specify the array element type.

Default
The default value for the data type.

Alignment
Storage alignment requirement of the data type.

Delimiter
The delimiter character to be used between values in arrays made of this type.

Storage
Storage technique for the data type.

Passed By Value
Indicates that values of this data type are passed by value rather than by reference.

Description  
 
The Description tab contains the type description. Button Save Description saves the edited description.

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

To call the PostgreSQL Reference, click button Help on SQL on the toolbar.

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

The drop-down list of the current database types on the toolbar allows you to switch the edited type.

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 type. Commit the transaction, and if it is successful, the new type will be created or the type parameters will be changed.
 
See also:
Table Editor
Schema Editor
View Editor
Function Editor
Rule Editor
Trigger Editor
Sequence Editor
Index Editor
Aggregate Editor
Operator Editor
Language Editor
Compile Window


Availability:
Windows Professional

Yes

Windows Lite

Yes

Linux Professional

Yes

Linux Lite

Yes