Type registers a new data type for use in the current database. If a schema name is given then the type is created in the specified schema. Otherwise it is created in the current schema. The type name must be distinct from the name of any existing type or domain in the same schema. (Because tables have associated data types, the type name must also be distinct from the name of any existing table in the same schema.)
Just simply click -> Type to open an object
pane for Type. A right-click displays the popup menu
or using the object pane toolbar below, allowing you to create new, edit and
delete the selected type.
You can create Base Type / Composite Type / Enum Type.
Note: Enum Type was added in PostgreSQL 8.3.
Create Type
To create a new type
- Select anywhere on the object pane.
- Click the
New Type from the object pane toolbar together with the
down arrow to choose New Base Type / New Composite Type / New Enum Type.
or - Right-click and select
New Type -> New Base Type / New Composite Type / New Enum Type from the popup menu.
- Edit type properties on the appropriate tabs of the Type Designer.
To create a new type with modification as one of the existing type
- Select the type for modifying in the object pane.
- Right-click and select the
Design Type from the popup menu or simply double-click the type.
or - Click the
Design Type from the object pane toolbar.
- Modify type properties on the appropriate tabs of the Type Designer.
- Click
Save As.
To edit the existing type(manage its general etc)
- Select the type for editing in the object pane.
- Right-click and select the
Design Type from the popup menu or simply double-click the type.
or - Click the
Design Type from the object pane toolbar.
- Edit type properties on the appropriate tabs of the Type Designer.
Delete Type
To delete a type
- Select the type for deleting in the object pane.
- Right-click and select the
Delete Type from the popup menu.
or - Click the
Delete Type from the object pane toolbar.
- Confirm deleting in the dialog window.
Achieve Type Information
To achieve a type information (OID, Type Owner, Internal Length and DDL, etc)
- Select the type in the object pane.
- Right-click the selected type and choose Type Information from the popup menu to view the Object Information.
or - Choose View -> Object Information in the main menu.