Skip to content

Cross-tests with EFCore.ComplexIndexes: temporal and exclusion constraints over DateRange, RangeSet and TimeRange columns, plus a joint smoke consumer #154

Closed

Description

@CaffeinatedCoder

EFCore.ComplexIndexes.PostgreSQL validates a temporal-constraint period by its store type name (anything ending in range, or CLR NpgsqlRange<T>), and every mapping this package registers carries that name. So HasTemporalConstraint(period: b => b.Period) over a DateRange property should already work, unverified. Neither package references the other, and that stays so; the connection is proven by tests on both sides (ComplexIndexes holds the mirror issue under its 11.0.0 epic).

Here, with a test-only reference to EFCore.ComplexIndexes.PostgreSQL in the integration project:

Done when claims.json holds the promises and the seeds show the tests notice a dropped store type name.

Activity

  1. added
    tests
    area/ranges
    area/range-set
    package/efcore
    on Oct 18, 2026
  2. CaffeinatedCoder commented on Oct 18, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Implemented in #159 (stacked on #158). The joint consumer is added to test/consumer-smoke-test.sh, not deferred. It fits the script's shape: one more hand-written consumer, with scaffold_consumer taking extra id@version packages, and the existing source mapping already routes EFCore.ComplexIndexes.PostgreSQL to nuget.org. It asserts the create script (via the package's runtime differ, so no database) rather than a scaffolded migration file.

    Measured locally: temporal constraints on postgres:18-alpine, exclusion constraints on postgres:16-alpine and postgres:18-alpine, over DateRange, RangeSet<DateRange, DateOnly> and TimeRange, each creating its schema with EnsureCreated + UseNpgsqlComplexIndexes(). The GiST index serves all eight range operators on all three columns. The seed range-mapping-drops-store-type-name.patch is CAUGHT 6 of 6, and the smoke consumer fails on it too.

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/range-setarea/rangespackage/efcoretests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions