Summary
The pg_enum catalog contains entries showing the values and labels for each enum type. The internal representation of a given enum value is actually the OID of its associated row in pg_enum.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_enum system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
oidoid
Row identifierenumtypidoidreferencespg_type.oid
The OID of the pg_type entry owning this enum valueenumsortorderfloat4
The sort position of this enum value within its enum typeenumlabelname
The textual label for this enum value
Related catalogs
This object references the following other system catalogs:
enumtypid→pg_type
Version applicability
Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.
Related & references
Reference: PostgreSQL documentation — pg_enum.