Repository navigation
Update to Npgsql 11.0.0 and refresh dependencies - #4139
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
roji
force-pushed
the
roji-dependency-updates
branch
from
November 20, 2026 14:47
b27c8ca to
803e942
Compare
roji
enabled auto-merge (squash)
November 20, 2026 14:47
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The Npgsql 11.0.0 upgrade still needs runtime validation of driver DI registration, NodaTime/spatial serialization, and admin connection lifecycle because dependency-based builds and database tests could not be run in the review environment.
No open issues 🎉
What changed in this PR
Aligns EFCore.PG and its NodaTime and NetTopologySuite plugins with Npgsql 11.0.0 GA, including driver API changes and refreshed test infrastructure.
Changes:
- Updates driver and test-tool dependencies and removes the separate
Npgsql.DependencyInjectionpackage. - Renames the provider’s service-registration class and removes the obsolete
Multiplexingsetting, while keeping admin connection pooling disabled. - Switches PostgreSQL 19 CI to the stable image without PostGIS and updates affected test expectations.
| File | Description |
|---|---|
test/EFCore.PG.Tests/NpgsqlRelationalConnectionTest.cs |
Removes Multiplexing from expected admin connection strings. |
test/EFCore.PG.Tests/EFCore.PG.Tests.csproj |
Removes the separate driver DI package reference. |
test/EFCore.PG.FunctionalTests/NpgsqlApiConsistencyTest.cs |
References the renamed service-registration class. |
src/EFCore.PG/Storage/Internal/NpgsqlRelationalConnection.cs |
Stops setting Multiplexing; retains disabled admin pooling. |
src/EFCore.PG/Extensions/NpgsqlEntityFrameworkServiceCollectionExtensions.cs |
Renames the extension class to avoid the driver’s type-name collision. |
Directory.Packages.props |
Updates centralized dependency versions and removes the DI package entry. |
.github/workflows/build.yml |
Uses stable PostgreSQL 19 and explicitly disables PostGIS enforcement for that job. |
Review effort: Balanced
Keep xUnit 4.0.1 so the inherited stored procedure tests run. Assert the exception chain from Npgsql 11 when binding invalid timestamp parameters. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Move the EF Core provider and its NodaTime and NetTopologySuite plugins to Npgsql 11.0.0 GA.
Npgsql.DependencyInjection, now built into the driver, and stop settingMultiplexing, which the driver removed. Admin connections still disable pooling.NpgsqlServiceCollectionExtensionstoNpgsqlEntityFrameworkServiceCollectionExtensionsto avoid a type-name collision with the driver. Extension method calls such asservices.AddNpgsql<MyContext>(...)are unchanged; only callers that reference the provider class directly need to update.