Enumerated types v16
Name | Native | Alias | Description |
---|---|---|---|
ENUM | ✅ | Static, ordered set of values, 4 bytes storage, max length is limited by NAMEDATALEN setting into PostgreSQL. |
Example
This example shows how to create ENUM
types and use it:
ENUM
types are case sensitive, and whitespace in ENUM
types is also significant.
The ENUM
types and its labels are stored in pg_enum
system catalog.
For more information on enumerated data types, see PostgreSQL docs.
- On this page
- Example