Types

ENUM, composite, range, domain, virtual, and base type declarations.
PageDescription
ENUMEnumerated type with safe value addition and removal
CompositeRow-shaped composite type
RangeCustom range type over a subtype
DomainConstrained alias over a base type
VirtualDPG-only annotation that generates no SQL
BaseShell / base type for C-implemented types

ENUM

Enumerated type with safe value addition via ALTER TYPE and safe value removal via MIGRATE REMOVE.

Composite

Row-shaped composite type declared with TYPE name AS (...).

Range

Custom range type over a subtype using TYPE name AS RANGE (...).

Domain

Constrained alias over a base type with DOMAIN name AS type.

Virtual

VIRTUAL TYPE — typed schema for JSON/JSONB columns, resolved to jsonb in SQL.

Base (Shell) Type

C-implemented base types declared with TYPE name (...).