Repository navigation
Description
State on 2026-11-29: PR #577. The tests name CodoMetis.EFCore.SchemaKit.PostgreSQL 11.0.0-preview.3 (the maintainer chose preview.3 over preview.2; it is on nuget.org since 2026-11-29). Beyond the plan below, the PR also holds an exclusion constraint over the range alone (pg.WithUncheckedOperator(x => x.Period, "&&"), new in preview.3; claim E95). E48–E52 are retired on main and stay on release/10.x. Measured: without UseSchemaKit() a declaration is rejected when the model is built, where ComplexIndexes created the table without the constraint.
Back in 11.0.0 since 2026-11-28 (maintainer). CodoMetis.EFCore.SchemaKit.PostgreSQL is on nuget.org (11.0.0-preview.1 on 2026-11-18, preview.2 on 2026-11-27), which is what this issue waited for. It goes into 11.0.0-preview.2 of this package (#147). A test-only reference to a prerelease doesn't stop a stable pack, so v11.0.0 still doesn't wait for SchemaKit's release. The typed Overlaps and the package that carries it are #540.
It had been moved out on 2026-11-11, when SchemaKit had no preview.
Problem
On main, ComplexIndexesCrossTests and the ComplexIndexes consumer in test/consumer-smoke-test.sh are off (net10.0 only), because EFCore.ComplexIndexes 5.x pins EF Core and Npgsql to 10. So on the 11 line nothing holds this package's columns under an exclusion constraint or a GiST index.
Decided 2026-10-19 (CaffeinatedCoder/CodoMetis.EFCore.SchemaKit#1): that package stays the EF Core 10 package. Its EF Core 11 successor is a new package, CodoMetis.EFCore.SchemaKit.PostgreSQL, starting at 11.0.0.
The integration csproj and the smoke script say "CaffeinatedCoder/EFCore.ComplexIndexes#42 restores them". An issue in that repository can't change this one, so this is the issue that does.
Change (main only)
release/10.x keeps EFCore.ComplexIndexes.PostgreSQL 5.x unchanged.
- Integration project: a test-only reference to
CodoMetis.EFCore.SchemaKit.PostgreSQLwith no TFM condition, naming one preview exactly, wired withUseSchemaKit()insideUseNpgsql. Exclusion constraints are declared withDeclarePostgres(pg => [pg.Exclusion(…)]), the range element throughWithUncheckedOperator(x => x.Period, "&&")until New package CodoMetis.ValueRanges.EFCore.PostgreSQL.SchemaKit: typed Overlaps for range and range set columns in SchemaKit's exclusion constraints #540 gives it a typedOverlaps. test/consumer-smoke-test.sh: the consumer runs on net11 with the new id and is no longer skipped.- Temporal claims: nothing moves. SchemaKit leaves temporal constraints to Npgsql 11, and
NativeTemporalKeyTestsholds the native keys here (feat: Npgsql 11's native temporal keys accept every range and multirange column #335, claims E64–E69).E48–E52are the ComplexIndexes (10.x) route; what they mean onmainis still to settle here (main:claims.jsonnamesComplexIndexesCrossTestsas holding 11 claims, but the test is compiled out on net11 #321). Exclusion constraints and GiST indexes (E40–E43,E53) are held by the SchemaKit tests. test/oracles/compiled-out.jsondrops the record for the cross-tests.docs/efcore.md(11 line): SchemaKit, named as a preview, for exclusion constraints and GiST indexes, and nativeWithoutOverlaps/WithPeriodfor temporal keys (Native temporal keys over ValueRanges columns on the 11 line: implement INpgsqlRangeTypeMapping, document WithoutOverlaps and WithPeriod #150). The main: say in the docs and the 11.0.0-preview changelog thatEFCore.ComplexIndexes.PostgreSQLcannot be installed beside the net11 packages yet #322 sentence goes.- AGENTS.md and the comments that cite CaffeinatedCoder/EFCore.ComplexIndexes#38, its Support compiled models generated with --nativeaot #42 or Cross-tests with CodoMetis.ValueRanges: range and multirange columns as exclusion-constraint operands CodoMetis.EFCore.SchemaKit#4 for the switched-off tests cite this issue instead, and main:
claims.jsonnamesComplexIndexesCrossTestsas holding 11 claims, but the test is compiled out on net11 #321's record of the gap goes.
Blocked by
- main: move the EF Core and Npgsql floors to 11.0.0 #533: SchemaKit's
preview.2depends on[11.0.0, 12.0.0)of Npgsql's provider, andmainis on rc.3.
No longer blocking: a SchemaKit preview on nuget.org (there are two), the temporal decision in CaffeinatedCoder/CodoMetis.EFCore.SchemaKit#3 (left to Npgsql 11), and #150 (closed).
Activity
CaffeinatedCoder commentedon Oct 19, 2026
#335 (closes CaffeinatedCoder/EFCore.ComplexIndexes#150) adds the native temporal keys on
main, in their own section, "Reject overlapping rows with Npgsql's temporal keys (PostgreSQL 18)", held byNativeTemporalKeyTestsas claims E64–E69. Npgsql 11'sWithoutOverlaps()/WithPeriod()accept this package's columns from rc.2 on, because the mappings implementINpgsqlRangeTypeMapping. So the temporal half of this issue no longer needs moving: E48–E52 stay as the ComplexIndexes (10.x) route, which the section now labels. What's left here is the SchemaKit id swap for exclusion constraints and GiST indexes, and what E48–E52 mean onmain(#321).Merge pull request #336 from CaffeinatedCoder/test/321-heldby-compiled
[-]main: re-enable the ComplexIndexes cross-tests and the joint smoke consumer against CodoMetis.EFCore.SchemaKit.PostgreSQL[/-][+]main: re-enable the cross-tests and the joint smoke consumer against CodoMetis.EFCore.SchemaKit.PostgreSQL[/+]Merge pull request #577 from CaffeinatedCoder/test/333-schemakit-cros…