Skip to content

btree_gist is injected only for gist with '=', and UseMethod("GiST") skips it #81

Closed

Description

@CaffeinatedCoder

Problem

btree_gist is injected only for a GiST exclusion constraint with an = element. Any scalar element under GiST needs it, whatever the operator: ex.WithColumn(x => x.RoomId, "<>").WithOverlaps(x => x.Period) gets no CREATE EXTENSION, and PostgreSQL 16 rejects the migration with data type integer has no default operator class for access method "gist". And UseMethod("GiST") skips the injection, because the method comparison is case-sensitive.

Fix

Inject for any GiST element over a type without a native GiST operator class (scalar columns), and compare the method case-insensitively. Loud. Found by the 5.5.0 pre-tag analysis.

Activity

  1. added this to the 5.5.1 milestone on Oct 19, 2026
  2. added
    bug
    severity/low
    package/postgresql
    area/constraints
    on Oct 19, 2026
  3. modified the milestones: 5.5.1, 5.5.0 on Oct 20, 2026
  4. added a commit that references this issue on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/constraintsbugpackage/postgresqlseverity/low

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions