Skip to content

opt: teach the optimizer to generate check constraints on enum columns #49263

@rohany

Description

@rohany

The optimizer should be able to infer check constraints on enum columns, which can allow it to generate better plans using constrained scans on those columns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions