Compze.Sql.PostgreSql
0.6.0-alpha
Prefix Reserved
See the version list below for details.
dotnet add package Compze.Sql.PostgreSql --version 0.6.0-alpha
NuGet\Install-Package Compze.Sql.PostgreSql -Version 0.6.0-alpha
<PackageReference Include="Compze.Sql.PostgreSql" Version="0.6.0-alpha" />
<PackageVersion Include="Compze.Sql.PostgreSql" Version="0.6.0-alpha" />
<PackageReference Include="Compze.Sql.PostgreSql" />
paket add Compze.Sql.PostgreSql --version 0.6.0-alpha
#r "nuget: Compze.Sql.PostgreSql, 0.6.0-alpha"
#:package Compze.Sql.PostgreSql@0.6.0-alpha
#addin nuget:?package=Compze.Sql.PostgreSql&version=0.6.0-alpha&prerelease
#tool nuget:?package=Compze.Sql.PostgreSql&version=0.6.0-alpha&prerelease
For Compze internal use only. Do not take a direct dependency on this package
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Compze.Abstractions (>= 0.4.1-alpha)
- Compze.Sql.Common (>= 0.6.0-alpha)
- Npgsql (>= 9.0.4)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Compze.Sql.PostgreSql:
| Package | Downloads |
|---|---|
|
Compze.Tessaging.PostgreSql
For Compze internal use only. Do not take a direct dependency on this package. PostgreSQL inbox/outbox backend for Compze messaging. |
|
|
Compze.TypeIdentifiers.Interning.PostgreSql
PostgreSQL backend for Compze type-id interning: a PostgreSQL ITypeIdInternerPersistence implementation for Compze.TypeIdentifiers.Interning. |
|
|
Compze.DocumentDb.PostgreSql
PostgreSQL backend for the Compze document database: a PostgreSQL IDocumentDbSqlLayer implementation for Compze.DocumentDb. |
|
|
Compze.Teventive.TeventStore.PostgreSql
For Compze internal use only. Do not take a direct dependency on this package. PostgreSQL tevent-store backend for Compze. |
|
|
Compze.Teventive.MemoryImageStateStore.PostgreSql
The PostgreSQL tables of Compze's memory image state store: PgSqlMemoryImageStateStoreSqlLayer(), for a memory image state store kept in the tables of a PostgreSQL domain database, which one memory image at a time uses. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.11-alpha | 0 | 12/5/2026 |
| 0.9.10-alpha | 0 | 12/5/2026 |
| 0.9.9-alpha | 0 | 12/5/2026 |
| 0.9.8-alpha | 63 | 12/5/2026 |
| 0.9.7-alpha | 72 | 12/5/2026 |
| 0.9.6-alpha | 61 | 12/5/2026 |
| 0.9.5-alpha | 63 | 12/5/2026 |
| 0.9.4-alpha | 107 | 12/4/2026 |
| 0.9.3-alpha | 138 | 12/3/2026 |
| 0.9.2-alpha | 78 | 12/3/2026 |
| 0.9.1-alpha | 173 | 12/2/2026 |
| 0.9.0-alpha | 89 | 12/2/2026 |
| 0.8.4-alpha | 196 | 11/29/2026 |
| 0.8.3-alpha | 115 | 11/28/2026 |
| 0.8.2-alpha | 114 | 11/28/2026 |
| 0.8.1-alpha | 111 | 11/28/2026 |
| 0.8.0-alpha | 118 | 11/27/2026 |
| 0.7.0-alpha | 72 | 11/27/2026 |
| 0.6.1-alpha | 85 | 11/26/2026 |
| 0.6.0-alpha | 130 | 11/25/2026 |
- **Internal: what Compze.Teventive.MemoryImageStateStore.PostgreSql needs to keep a memory image state store in PostgreSQL tables.**
- **A transaction holding Compze's PostgreSQL connection commits the database as its decision, with any other participants:** the database commits once every other participant of the transaction has prepared, and before any is told the outcome. Before, Npgsql's own enlistment committed as the decision only while the transaction had no other participant that prepares last, as a consumer's own enlistment with no options does: with one, Npgsql prepared a two-phase commit, which a PostgreSQL server refuses by default (max_prepared_transactions is 0), so every such transaction rolled back. Compze's connection now begins the database transaction itself, at the ambient transaction's isolation level, with Npgsql's enlistment off (`Enlist=false`).
- **What a consumer could notice:** the connection takes part as its transaction's durable participant, as SQL Server's, MySQL's and SQLite's do, so a transaction that also holds another durable resource, such as a second database's connection, becomes distributed, which .NET refuses unless distributed transactions are allowed; with them allowed, the connection refuses to prepare a two-phase commit, and the transaction rolls back. A volatile participant of the consumer's own keeps working, and is told the outcome once the database has committed.
- **A transaction that holds a durable resource already, such as another database's connection or a resource manager of your own, refuses Compze's PostgreSQL connection with a message that says so,** and names the connection, the rule and what to do: keep each database, and each other durable resource, in transactions of its own. Before, it was .NET's "Implicit distributed transactions have not been enabled", which names neither. When your resource takes part second instead, the refusal is .NET's own, from your call: the `PgSqlDomainDatabase` documentation now says so.
- **A synchronous open no longer waits in Npgsql's pool for a free thread-pool thread.** When as many connections as the pool holds (its Max Pool Size) were in use, a synchronous open waited for one to come back on an event that Npgsql sets from the thread pool: with every pool thread busy, as under many units of work at once, each waiting for a connection, the connections that came back lay unclaimed until the pool added a thread. A hundred and twenty-eight units of work through a pool of ten took 12 s, against under 1 s on SQL Server and MySQL. Compze's connections now take a place in the pool before they open, and wait for one, if they must, where a returning connection wakes them itself: 0.7 s. A wait longer than the connection string's Timeout throws a TimeoutException that names the pool's Max Pool Size and Timeout, where Npgsql threw an NpgsqlException saying the pool was exhausted.
- **Creating the schema at a database's first use no longer waits for a free thread-pool thread.** A synchronous SQL layer, such as the tevent store's, blocked its thread on the asynchronous creation, whose continuations each needed a free thread-pool thread, while many units of work at once could hold every one, each blocked waiting for the creation. The creation is now synchronous for every caller, the asynchronous SQL layers' too, which block their thread for it once, at the database's first use. Each statement of the schema runs as a command of its own, since Npgsql 9 sends the second and later statements of a synchronous command from the thread pool: so each commits by itself, and a creation that fails part way is completed by the next.
- **Requires newer minor versions of other Compze packages:** Compze.Sql.Common 0.6.0-alpha (was 0.4.0-alpha). Upgrading to this version upgrades each package listed here too, so their changelogs apply to this upgrade as well.