pg_enum — PostgreSQL system catalog

The PostgreSQL pg_enum system catalog: full column reference (names, types, descriptions), catalog relationships and version support.

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):

  • oid oid
    Row identifier
  • enumtypid oid references pg_type.oid
    The OID of the pg_type entry owning this enum value
  • enumsortorder float4
    The sort position of this enum value within its enum type
  • enumlabel name
    The textual label for this enum value

Related catalogs

This object references the following other system catalogs:

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.