Repository navigation
Description
Unblocked 2026-11-20. Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0 and Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime 11.0.0 have been on nuget.org since 2026-11-20. Since 2026-11-28 this comes before the first preview (#332), so preview.1 ships on the provider's 11.0.0 and not on rc.3. CodoMetis.EFCore.SchemaKit.PostgreSQL 11.0.0-preview.2 already depends on [11.0.0, 12.0.0) of the provider.
Problem
v11.0.0 can't be tagged while the EF packages depend on a prerelease: a stable package with a prerelease dependency fails the pack with NU5104. main references Npgsql.EntityFrameworkCore.PostgreSQL and its NodaTime plugin at 11.0.0-rc.3, and rc.3 pins EF Core to exactly 11.0.0-rc.3.26522.148.
Change
- Npgsql's provider and its NodaTime plugin to 11.0.0 in the two EF packages, and Microsoft.EntityFrameworkCore.Design to 11.0.0 in the test projects, in one change. Never floor EF Core above the version the floored Npgsql pins. The provider's 11.0.0 takes EF Core
[11.0.0, 12.0.0). - This is the first run on the Npgsql 11 driver. The provider's 11.0.0 depends on
Npgsql11.0.0 and its NodaTime plugin onNpgsql.NodaTime11.0.0, where rc.3 resolvedNpgsql10.0.3. Run the temporal store rule (TemporalStoreParityTests) and the infinity-disabled project before anything else. - Run every suite on PostgreSQL 16 and 18, both smoke modes, and the four behaviour changes of build: retarget main to .NET 11 for 11.0.0-preview.1 #292 once more.
- Read the provider's 11.0.0 release notes for changes after rc.3. Fix NodaTime LocalDate subtraction and BCE year extraction npgsql/efcore.pg#4109 changed NodaTime
LocalDatesubtraction for 11.0 only.
Done when
main restores with no prerelease package in the shipping projects, and the full run is green.
Activity
[-]main: move the EF Core and Npgsql floors to 11.0.0 when Npgsql's provider ships it[/-][+]main: move the EF Core and Npgsql floors to 11.0.0[/+]CaffeinatedCoder commentedon Nov 28, 2026
Measured 2026-11-28 on
build/533-npgsql-11-floors(commit 1f84c7e on d441c79, PR #542), run locally, osx-arm64, SDK 11.0.100,CI=trueso a missing database fails.What resolves
Npgsql.EntityFrameworkCore.PostgreSQL11.0.0,Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime11.0.0, EF Core 11.0.0,Npgsql11.0.0 andNpgsql.NodaTime11.0.0. The four shipping projects have no prerelease package among their dependencies, direct or transitive. The packed nuspecs nameNpgsql.EntityFrameworkCore.PostgreSQL11.0.0 and its NodaTime plugin 11.0.0.The build needed no source change, with warnings as errors.
The Npgsql 11 driver first
TemporalStoreParityTestsand the infinity-disabled project (7 tests) pass on PostgreSQL 16 and 18.Every suite
No test was skipped or inconclusive.
The four fixes of #292 are still needed
Each was stripped alone in a scratch copy, its tests run, and the file restored.
StartsWithHour24never matchesTemporalLiteralGrammarTests: 7 of 115 fail, "Expected exception of exact type FormatException"RangeSet.ContainsRangeSetContainsRewriterout of the interceptorRangeSet_Contains_Set,_Value,_RangeColumn: 3 of 3 fail,ArgumentExceptioninside EF Corejsonb_set_laxValueSetSqlGuard's matchExecuteUpdateGuardTests: 6 of 7 fail, the message names the column and not the pathEmptyCollectionRewriterleaves the constant uncastAnEmptyCollection*on PostgreSQL 16: 3 of 5 fail,42883: operator does not exist: text && int4rangeSmoke test, both modes
Own feed and a pre-built
dist: 99oklines each, no assertion failure, "consumer smoke test passed (11.0.0-preview.1)". The Native AOT consumer and the walkthrough consumer (PostgreSQL 16) ran. The ComplexIndexes consumer is skipped onnet11.0, as before (#333).The provider after rc.3
v11.0.0-rc.3...v11.0.0is eight commits. Besides the sync to EF Core 11.0.0 and Npgsql 11.0.0 they fix translations of the provider's own types:lower/upperof anNpgsqlRange<T>and of a NodaTimeDateIntervaldeclared as not propagating NULL (npgsql/efcore.pg#4134),array_removelikewise, a newPgExpressionType.ArrayConcatforConcatover arrays, parentheses around the item ofANY/ALL(npgsql/efcore.pg#4130),TimeOnly.IsBetween(npgsql/efcore.pg#4127), chained array subscripts (npgsql/efcore.pg#4135) and storage parameters under a culture (npgsql/efcore.pg#4115). None changes an expression this package builds, and the suites above agree. npgsql/efcore.pg#4109 (LocalDatesubtraction) was merged on 2026-10-25, before rc.3, somainhas had it since #532.