Npgsql 11.0 Released: A Major Update to the .NET Driver for PostgreSQLBrief · digest for November 26
Brief≈ 1 min

Npgsql 11.0 Released: A Major Update to the .NET Driver for PostgreSQL

You bump a NuGet package to a new major version and immediately hit a crash on your connection string. Npgsql 11.0, the primary ADO.NET PostgreSQL driver behind Dapper and EF Core, brings several breaking changes like that.

Release v11.0.0 (November 20, 2026) clears out years of legacy baggage. Npgsql.DependencyInjection merged into the core Npgsql package (AddNpgsqlDataSource() stays intact, so drop the extra package from your .csproj), while net8.0 and net9.0 targets were removed in favor of .NET 10+. Experimental multiplexing is gone too: delete Multiplexing and Write Coalescing Buffer Threshold Bytes from your configs, because even Multiplexing=false will throw. Instead of the removed NpgsqlLargeObjectManager and NpgsqlLargeObjectStream, use native lo_get and lo_put.

The OpenTelemetry db.client.connection.pool.name tag now uses Application Name instead of the raw connection string. To keep your charts from splitting, set the pool name explicitly:

using Microsoft.Extensions.DependencyInjection;

// Npgsql.DependencyInjection and Multiplexing are no longer needed
var cs = "Host=localhost;Database=app;Application Name=orders-api";

builder.Services.AddNpgsqlDataSource(cs, ds =>
{
    // Pin the db.client.connection.pool.name tag
    ds.Name = "orders-primary-pool";
});

Once upgraded, your project drops one NuGet dependency, raw connection strings stay out of metrics, and a clean config boots without surprises.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 3