EnvelopeFlow.Reporting.Stores.Postgres
0.1.0-alpha.3.1
dotnet add package EnvelopeFlow.Reporting.Stores.Postgres --version 0.1.0-alpha.3.1
NuGet\Install-Package EnvelopeFlow.Reporting.Stores.Postgres -Version 0.1.0-alpha.3.1
<PackageReference Include="EnvelopeFlow.Reporting.Stores.Postgres" Version="0.1.0-alpha.3.1" />
<PackageVersion Include="EnvelopeFlow.Reporting.Stores.Postgres" Version="0.1.0-alpha.3.1" />
<PackageReference Include="EnvelopeFlow.Reporting.Stores.Postgres" />
paket add EnvelopeFlow.Reporting.Stores.Postgres --version 0.1.0-alpha.3.1
#r "nuget: EnvelopeFlow.Reporting.Stores.Postgres, 0.1.0-alpha.3.1"
#:package EnvelopeFlow.Reporting.Stores.Postgres@0.1.0-alpha.3.1
#addin nuget:?package=EnvelopeFlow.Reporting.Stores.Postgres&version=0.1.0-alpha.3.1&prerelease
#tool nuget:?package=EnvelopeFlow.Reporting.Stores.Postgres&version=0.1.0-alpha.3.1&prerelease
PostgreSQL reporting
Optional PostgresReportingStore implements the complete reporting contract durably. Explicit deployment setup calls InitializeAsync, applying PostgresReportingMigrations.Catalog, component envelopeflow.reporting, through version 3 reporting-delivery-dimensions, then converting legacy scope documents. Normal workers only reopen the store. The feature owns the ef_reporting metadata table, five indexed reporting row tables, and its shared migration protocol journal entries.
Each operation locks a small scope metadata row and shares the reporting workflow used by document adapters. It reads only the requested admission/delivery/exposure/receipt identities and their aggregates. Query filtering, key pagination and retention limits execute in SQL; historical identities remain on disk. Scope counters enforce permanent per-table capacity without counting or loading the history. Cancellation, trigger failure or process loss before commit leaves no identity/counter debit. A committed observation followed by process loss before upstream acknowledgment is a duplicate on recovery.
Version 1 documents retain their original migration checksum. Upgrade validates every legacy field and scope, then imports a scope's bounded document with bulk operations and replaces it with a small format-2 marker in one transaction. Receipt timestamps are parsed from the same immutable JSON used by their SQL consistency constraint: PostgreSQL rounds fractional microseconds while binary .NET timestamp encoding truncates them. This preserves 100 ns source fingerprints and avoids rejecting valid receipt times during normal writes or legacy conversion. Failed or cancelled conversion leaves that scope unchanged; rerunning initialization resumes safely. Converted scopes reject old document writers rather than reopening an empty ledger. Applying the SQL catalog alone prepares the tables; it does not convert documents. Coordinate deployment so remaining legacy scopes finish conversion before new workers serve them.
Version 3 adds nullable provider/channel aggregate columns, consistency checks and scope/dimension/day indexes. Optional timing and fixed-size histogram payloads use the existing normalized identity/aggregate transaction fence and byte budget. Old defaults omit every added attribution/timing field; old rows are read without inventing historical times. Stop older writers during migration and deploy updated readers before enabling new dimensions/timing, since older strict payload readers reject unfamiliar fields. These migrations do not rewrite admission or source observation fingerprints.
Version 3 also persists authoritative 100 ns retention-floor ticks and generates indexed exact receipt ticks from the original UTC JSON. This keeps rejection and detail-redaction boundaries coherent across clients instead of rounding/truncating the floor to PostgreSQL microseconds. Previously normalized floors retain their available stored precision; new writes and legacy document conversion preserve exact ticks. The feature-owned ef_reporting_ticks_v1 SQL function is frozen migration data and must not be edited after publication.
Writes still serialize within a scope, with the default capacity of 10,000 entries in each identity/aggregate table and the existing 16 MiB canonical document budget. Metadata retains the exact serialized byte cost; transactions account for changed keys, row payloads, commas and watermark size without reconstructing history. Redaction reduces byte usage while preserving permanent identity capacity. Valid row payloads remain below 64 KiB because all seven scope/attribution identifiers have bounded lengths and the observation counter enum is bounded. See the reporting contract for permanent identity capacity and live-page query/export semantics. Protect internal campaign/experiment identifiers and backups under application policy; reporting has no address/content/recipient export. Initialize a dedicated schema in local tests, never a production database implicitly at worker startup.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- EnvelopeFlow.Reporting (>= 0.1.0-alpha.3.1)
- EnvelopeFlow.Stores.Migrations.Postgres (>= 0.1.0-alpha.3.1)
- 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 |
|---|---|---|
| 0.1.0-alpha.3.1 | 44 | 11/22/2026 |
| 0.1.0-alpha.2.1 | 59 | 11/9/2026 |