Npgsql 10.0.3

Npgsql is the open source .NET data provider for PostgreSQL. It allows you to connect and interact with PostgreSQL server using .NET.

Quickstart

Here's a basic code snippet to get you started:

var connString = "Host=myserver;Username=mylogin;Password=mypass;Database=mydatabase";

await using var conn = new NpgsqlConnection(connString);
await conn.OpenAsync();

// Insert some data
await using (var cmd = new NpgsqlCommand("INSERT INTO data (some_field) VALUES (@p)", conn))
{
    cmd.Parameters.AddWithValue("p", "Hello world");
    await cmd.ExecuteNonQueryAsync();
}

// Retrieve all rows
await using (var cmd = new NpgsqlCommand("SELECT some_field FROM data", conn))
await using (var reader = await cmd.ExecuteReaderAsync())
{
while (await reader.ReadAsync())
    Console.WriteLine(reader.GetString(0));
}

Key features

  • High-performance PostgreSQL driver. Regularly figures in the top contenders on the TechEmpower Web Framework Benchmarks.
  • Full support of most PostgreSQL types, including advanced ones such as arrays, enums, ranges, multiranges, composites, JSON, PostGIS and others.
  • Highly-efficient bulk import/export API.
  • Failover, load balancing and general multi-host support.
  • Great integration with Entity Framework Core via Npgsql.EntityFrameworkCore.PostgreSQL.

For the full documentation, please visit the Npgsql website.

No packages depend on Npgsql.

Version Downloads Last updated
10.0.3 39 5/27/2026
10.0.2 44 3/12/2026
10.0.1 43 12/20/2025
10.0.0 57 11/23/2025
10.0.0-rc.1 80 10/10/2025
9.0.5 45 3/12/2026
9.0.4 91 10/10/2025
9.0.3 86 10/10/2025
9.0.2 81 10/10/2025
9.0.1 88 10/10/2025
8.0.9 49 3/12/2026
8.0.8 88 10/10/2025
8.0.7 91 10/10/2025
8.0.6 86 10/10/2025
8.0.5 87 10/10/2025
8.0.4 82 10/10/2025
8.0.3 85 10/10/2025
8.0.2 89 10/10/2025
8.0.1 89 10/10/2025
8.0.0 81 10/10/2025
8.0.0-rc.2 70 10/10/2025
8.0.0-preview.4 67 10/10/2025
8.0.0-preview.3 81 10/10/2025
8.0.0-preview.2 84 10/10/2025
8.0.0-preview.1 85 10/10/2025
7.0.10 77 10/10/2025
7.0.9 80 10/10/2025
7.0.8 82 10/10/2025
7.0.7 87 10/10/2025
7.0.6 75 10/10/2025
7.0.4 79 10/10/2025
7.0.2 89 10/10/2025
7.0.1 86 10/10/2025
7.0.0 83 10/10/2025
7.0.0-rc.2 85 10/10/2025
7.0.0-rc.1 88 10/10/2025
7.0.0-preview.7 78 10/10/2025
7.0.0-preview.6 78 10/10/2025
7.0.0-preview.5 76 10/10/2025
7.0.0-preview.4 74 10/10/2025
7.0.0-preview.3 82 10/10/2025
7.0.0-preview.2 71 10/10/2025
7.0.0-preview.1 85 10/10/2025
6.0.13 94 10/10/2025
6.0.12 88 10/10/2025
6.0.11 75 10/10/2025
6.0.10 86 10/10/2025
6.0.9 77 10/10/2025
6.0.8 77 10/10/2025
6.0.7 79 10/10/2025
6.0.6 92 10/10/2025
6.0.5 85 10/10/2025
6.0.4 91 10/10/2025
6.0.3 89 10/10/2025
6.0.2 83 10/10/2025
6.0.1 87 10/10/2025
6.0.0 81 10/10/2025
6.0.0-rc.2 82 10/10/2025
6.0.0-rc.1 86 10/10/2025
6.0.0-preview7 70 10/10/2025
6.0.0-preview6 91 10/10/2025
6.0.0-preview5 78 10/10/2025
6.0.0-preview4 83 10/10/2025
6.0.0-preview3 82 10/10/2025
6.0.0-preview2 81 10/10/2025
5.0.18 76 10/10/2025
5.0.17 79 10/10/2025
5.0.16 81 10/10/2025
5.0.15 87 10/10/2025
5.0.14 76 10/10/2025
5.0.13 72 10/10/2025
5.0.12 83 10/10/2025
5.0.11 73 10/10/2025
5.0.10 78 10/10/2025
5.0.7 95 10/10/2025
5.0.5 90 10/10/2025
5.0.4 84 10/10/2025
5.0.3 80 10/10/2025
5.0.2 89 10/10/2025
5.0.1.1 85 10/10/2025
5.0.0 80 10/10/2025
4.1.14 86 10/10/2025
4.1.13 81 10/10/2025
4.1.12 93 10/10/2025
4.1.11 78 10/10/2025
4.1.10 84 10/10/2025
4.1.9 85 10/10/2025
4.1.8 86 10/10/2025
4.1.7 79 10/10/2025
4.1.6 80 10/10/2025
4.1.5 79 10/10/2025
4.1.4 78 10/10/2025
4.1.3.1 73 10/10/2025
4.1.3 103 10/10/2025
4.1.2 81 10/10/2025
4.1.1 76 10/10/2025
4.1.0 83 10/10/2025
4.0.17 81 10/10/2025
4.0.16 79 10/10/2025
4.0.14 81 10/10/2025
4.0.13 64 10/10/2025
4.0.12 81 10/10/2025
4.0.11 91 10/10/2025
4.0.10 73 10/10/2025
4.0.9 84 10/10/2025
4.0.8 85 10/10/2025
4.0.7 88 10/10/2025
4.0.6 90 10/10/2025
4.0.5 86 10/10/2025
4.0.4 71 10/10/2025
4.0.3 86 10/10/2025
4.0.2 85 10/10/2025
4.0.1 76 10/10/2025
4.0.0 77 10/10/2025
4.0.0-rc1 78 10/10/2025
4.0.0-preview2 76 10/10/2025
4.0.0-preview1 82 10/10/2025
3.2.7 98 10/10/2025
3.2.6 71 10/10/2025
3.2.5 92 10/10/2025
3.2.4.1 79 10/10/2025
3.2.4 89 10/10/2025
3.2.3 74 10/10/2025
3.2.2 83 10/10/2025
3.2.1 74 10/10/2025
3.2.0 89 10/10/2025
3.1.10 81 10/10/2025
3.1.9 71 10/10/2025
3.1.8 77 10/10/2025
3.1.7 77 10/10/2025
3.1.6 79 10/10/2025
3.1.5 76 10/10/2025
3.1.4 100 10/10/2025
3.1.3 84 10/10/2025
3.1.2 85 10/10/2025
3.1.1 78 10/10/2025
3.1.0 80 10/10/2025
3.0.8 95 10/10/2025
3.0.7 81 10/10/2025
3.0.6 77 10/10/2025
3.0.5 78 10/10/2025
3.0.4 91 10/10/2025
3.0.3 81 10/10/2025
3.0.2 80 10/10/2025
3.0.1 89 10/10/2025
3.0.0 76 10/10/2025
2.2.7 87 10/10/2025
2.2.6 87 10/10/2025
2.2.5 77 10/10/2025
2.2.4.3 86 10/10/2025
2.2.4.1 80 10/10/2025
2.2.3 85 10/10/2025
2.2.2 82 10/10/2025
2.2.1 83 10/10/2025
2.2.0 84 10/10/2025
2.1.3 81 10/10/2025
2.1.2 84 10/10/2025
2.1.1 78 10/10/2025
2.1.0 80 10/10/2025
2.0.14.3 73 10/10/2025
2.0.12.1 88 10/10/2025
2.0.11 91 10/10/2025