CodeLogic.Data.PostgreSql
5.0.116-preview
dotnet add package CodeLogic.Data.PostgreSql --version 5.0.116-preview
NuGet\Install-Package CodeLogic.Data.PostgreSql -Version 5.0.116-preview
<PackageReference Include="CodeLogic.Data.PostgreSql" Version="5.0.116-preview" />
<PackageVersion Include="CodeLogic.Data.PostgreSql" Version="5.0.116-preview" />
<PackageReference Include="CodeLogic.Data.PostgreSql" />
paket add CodeLogic.Data.PostgreSql --version 5.0.116-preview
#r "nuget: CodeLogic.Data.PostgreSql, 5.0.116-preview"
#:package CodeLogic.Data.PostgreSql@5.0.116-preview
#addin nuget:?package=CodeLogic.Data.PostgreSql&version=5.0.116-preview&prerelease
#tool nuget:?package=CodeLogic.Data.PostgreSql&version=5.0.116-preview&prerelease
CodeLogic.Data.PostgreSql
Status: 5.0 preview.
The PostgreSQL provider for CodeLogic.Data, built on Npgsql.
dotnet add package CodeLogic.Data.PostgreSql
- With the CodeLogic runtime: load
PostgreSqlDataLibrarynext toDataLibrary, and set"provider": "postgresql"on a connection inconfig.data.json. - Without it: pass
PostgreSqlDataProvider.InstancetoDatabase.Create.
Bulk copy uses binary COPY with each column's real type; jsonb, uuid, timestamptz and bytea map natively; postgreSql.defaultSchema qualifies tables; replica lag comes from the replay LSN and timestamp; failoverHosts uses Npgsql multi-host. Extras: db.Postgres.ListenAsync, NotifyAsync, VacuumAnalyzeAsync<T>().
Documentation: Providers.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- CodeLogic (>= 5.0.0-preview && < 6.0.0)
- CodeLogic.Data (>= 5.0.116-preview && < 6.0.0)
- Npgsql (>= 10.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.116-preview | 42 | 11/1/2026 |
| 5.0.115-preview | 42 | 11/1/2026 |
| 5.0.114-preview | 35 | 10/31/2026 |
| 5.0.113-preview | 35 | 10/31/2026 |
# Changelog
## 5.0 (unreleased)
### Added
- New package: the PostgreSQL provider for CodeLogic.Data (CL.Data), built on Npgsql. Part of the CL.Data database
framework that replaces CL.PostgreSQL in the CodeLogic 5 line. Targets .NET 11 and CodeLogic 5.
- Restores move identity sequences past the restored values (setval).
### Fixed
- `NotifyAsync` (`pg_notify`) and `VacuumAnalyzeAsync` run on the primary as a side effect (`SqlIntent.SideEffect`). Before, they went through the read path: a notification could be sent on a replica (where it fails) or sent twice after a transient error.
- The schema introspector always reads the primary.
- `[PostgresTable]` hints are applied when a table is created: `Unlogged` gives `CREATE UNLOGGED TABLE`, `FillFactor` gives `WITH (fillfactor = n)`, `Tablespace` gives `TABLESPACE`. Before, they were ignored.