Npgsql 10.0.2

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.2 2 2026/3/19
10.0.1 3 2025/12/25
10.0.0 2 2026/1/23
10.0.0-rc.1 2 2026/1/23
9.0.5 1 2026/3/26
9.0.4 4 2026/1/23
9.0.3 2 2026/1/23
9.0.2 2 2026/1/23
9.0.1 0 2024/11/19
9.0.0 6 2025/12/25
8.0.9 1 2026/3/26
8.0.8 2 2026/1/23
8.0.7 4 2026/1/23
8.0.6 0 2024/11/18
8.0.5 2 2026/1/23
8.0.4 2 2026/1/23
8.0.3 2 2026/1/23
8.0.2 2 2026/1/23
8.0.1 2 2026/1/23
8.0.0 2 2026/1/23
8.0.0-rc.2 2 2026/1/23
8.0.0-preview.4 1 2026/3/28
8.0.0-preview.3 1 2026/3/28
8.0.0-preview.2 1 2026/3/28
8.0.0-preview.1 1 2026/3/28
7.0.10 1 2026/3/26
7.0.9 2 2026/1/23
7.0.8 2 2026/1/23
7.0.7 2 2026/1/23
7.0.6 2 2026/1/23
7.0.4 2 2026/1/23
7.0.2 2 2026/1/23
7.0.1 2 2026/1/23
7.0.0 2 2026/1/23
7.0.0-rc.2 2 2026/1/23
7.0.0-rc.1 0 2022/9/16
7.0.0-preview.7 1 2026/3/28
7.0.0-preview.6 1 2026/3/28
7.0.0-preview.5 1 2026/3/28
7.0.0-preview.4 1 2026/3/28
7.0.0-preview.3 1 2026/3/28
7.0.0-preview.2 1 2026/3/28
7.0.0-preview.1 1 2026/3/28
6.0.13 2 2026/1/23
6.0.12 2 2026/1/23
6.0.11 2 2026/1/23
6.0.10 2 2026/1/23
6.0.9 2 2026/1/23
6.0.8 2 2026/1/23
6.0.7 2 2026/1/23
6.0.6 2 2026/1/23
6.0.5 2 2026/1/23
6.0.4 2 2026/1/23
6.0.3 2 2026/1/23
6.0.2 2 2026/1/23
6.0.1 2 2026/1/23
6.0.0 2 2026/1/23
6.0.0-rc.2 0 2021/10/14
6.0.0-rc.1 0 2021/9/24
6.0.0-preview7 1 2026/3/27
6.0.0-preview6 1 2026/3/27
6.0.0-preview5 1 2026/3/27
6.0.0-preview4 1 2026/3/27
6.0.0-preview3 1 2026/3/27
6.0.0-preview2 1 2026/3/27
5.0.18 2 2026/1/23
5.0.17 2 2026/1/23
5.0.16 2 2026/1/23
5.0.15 2 2026/1/23
5.0.14 2 2026/1/23
5.0.13 2 2026/1/23
5.0.12 2 2026/1/23
5.0.11 2 2026/1/23
5.0.10 2 2026/1/23
5.0.7 2 2026/1/23
5.0.5 2 2026/1/23
5.0.4 2 2026/1/23
5.0.3 2 2026/1/23
5.0.2 2 2026/1/23
5.0.1.1 1 2026/3/27
5.0.0 2 2026/1/23
4.1.14 2 2026/1/23
4.1.13 2 2026/1/23
4.1.12 2 2026/1/23
4.1.11 2 2026/1/23
4.1.10 0 2021/11/12
4.1.9 2 2026/1/23
4.1.8 2 2026/1/23
4.1.7 2 2026/1/23
4.1.6 2 2026/1/23
4.1.5 2 2026/1/23
4.1.4 2 2026/1/23
4.1.3.1 1 2026/3/27
4.1.3 2 2026/1/23
4.1.2 2 2026/1/23
4.1.1 0 2019/10/2
4.1.0 2 2026/1/23
4.0.17 2 2026/1/23
4.0.16 2 2026/1/23
4.0.14 1 2026/3/26
4.0.13 2 2026/1/23
4.0.12 2 2026/1/23
4.0.11 2 2026/1/23
4.0.10 2 2026/1/23
4.0.9 2 2026/1/23
4.0.8 2 2026/1/23
4.0.7 2 2026/1/23
4.0.6 2 2026/1/23
4.0.5 1 2026/2/21
4.0.4 1 2026/1/23
4.0.3 2 2026/1/23
4.0.2 2 2026/1/23
4.0.1 2 2026/1/23
4.0.0 2 2026/1/23
4.0.0-rc1 0 2018/5/8
4.0.0-preview2 1 2026/3/27
4.0.0-preview1 1 2026/3/27
3.2.7 0 2018/2/27
3.2.6 2 2026/1/23
3.2.5 2 2026/1/23
3.2.4.1 1 2026/3/27
3.2.4 2 2026/1/23
3.2.3 2 2026/1/23
3.2.2 2 2026/1/23
3.2.1 2 2026/1/23
3.2.0 2 2026/1/23
3.1.10 2 2026/1/23
3.1.9 2 2026/1/23
3.1.8 0 2016/9/24
3.1.7 2 2026/1/23
3.1.6 2 2026/1/23
3.1.5 2 2026/1/23
3.1.4 2 2026/1/23
3.1.3 0 2016/5/30
3.1.2 0 2016/5/22
3.1.1 2 2026/1/23
3.1.0 2 2026/1/23
3.0.8 2 2026/1/23
3.0.7 2 2026/1/23
3.0.6 2 2026/1/23
3.0.5 2 2026/1/23
3.0.4 2 2026/1/23
3.0.3 2 2026/1/23
3.0.2 2 2026/1/23
3.0.1 0 2015/8/18
3.0.0 2 2026/1/23
2.2.7 0 2015/9/18
2.2.6 2 2026/1/23
2.2.5 2 2026/1/23
2.2.4.3 1 2026/3/27
2.2.4.1 1 2026/3/27
2.2.3 2 2026/1/23
2.2.2 2 2026/1/23
2.2.1 2 2026/1/23
2.2.0 2 2026/1/23
2.1.3 0 2014/4/9
2.1.2 2 2026/1/23
2.1.1 2 2026/1/23
2.1.0 2 2026/1/23
2.0.14.3 1 2026/3/27
2.0.12.1 2 2026/1/23
2.0.11 0 2011/2/6