Npgsql

.NET Data Provider for PostgreSQL

About Npgsql

Npgsql is the .NET data provider for PostgreSQL. It allows any program developed for .NET framework to access a PostgreSQL database server. It is implemented in 100% C# code. PostgreSQL versions since 9.0 are officially supported, others may work. Read more...

Latest News

  • Npgsql 3.1.4 and 3.0.8

    Npgsql 3.1.4 and 3.0.8 have been released and are available on nuget.org.

    3.1.4 mainly fixes some more cases of missing ConfigureAwait(false) which could cause deadlocks, you are strongly encouraged to upgrade, especially if you use the async APIs.

    3.0.8 is an important update in the 3.0.x line. You should definitely upgrade to 3.1.x, but if for some reason you can’t 3.0.8 fixes quite a few bugs.

    Also, I’m away on a pretty intensive 5-month and won’t be able to invest as much time in Npgsql as I could recently. I’ll do my best to solve bugs but work on 3.2 probably won’t start before November. Please be patient :)

    The complete list of issues for 3.1.4 is here. The complete list of issues for 3.0.8 is here.

  • Npgsql 3.1.3

    Npgsql 3.1.3 has been released and is available on nuget.org.

    This release fixes some important issues:

    • PostgresException now properly inherits from NpgsqlException (#1117).
    • When executing big multistatement commands, ConfigureAwait(false) was missing. This could lead to deadlocks in some cases, even when using synchronous I/O. (#1136).
    • Because of the new composite type support in 3.1, initial connections to database with a large number of tables could be very slow. This is now fixed. (#1126).

    All users of 3.1.x should upgrade immediately.

    The complete list of issues is here.

  • Npgsql Entity Framework 6 Provider 3.1.0

    Npgsql’s Entity Framework 6 (and 5) provider version 3.1.0 has been released and is available on nuget.org. This allows use of the newly-released Npgsql 3.1.0 with Entity Framework 6/5.

    Starting now, EF6/5 provider releases will be decoupled from Npgsql itself; up to now every time a version bump occured on Npgsql, an EF6/5 provider with the same version released. From now on each project will follow its own versioning.

  • Npgsql 3.1.2

    Npgsql 3.1.2 has been released and is available on nuget.org.

    This release fixes a major bug where the read timeout was set incorrectly, resulting in incorrect timeout exceptions.

    Also, async calls weren’t really executed asynchronously when using SSL (TlsClientStream specifically), this has been resolved and async calls will be truly async.

    All users of 3.1.x should upgrade immediately.

  • Npgsql 3.1.1

    Npgsql 3.1.1 has been released and is available on nuget.org.

    This releases fixes some minor bugs and removes an embarrassing Console.WriteLine that somehow made it into the final release.

    It also implements the new CoreCLR data reader schema API (https://github.com/dotnet/corefx/issues/5915), a better way to discover information about columns you select. It’s been made available in .NET Framework as well.

    The complete list of issues is here.

Click here for older announcements