@rotorsoft/act-pg 1.13.15 → 1.13.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/postgres-store.d.ts.map +1 -1
- package/dist/index.cjs +29 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -157,8 +157,10 @@ Idempotent. Creates the events table, the streams (subscription) table, and the
|
|
|
157
157
|
|
|
158
158
|
Created by `seed()`:
|
|
159
159
|
|
|
160
|
-
- **Events** (`{schema}.{table}`): `id` (serial PK), `name
|
|
161
|
-
- **Streams** (`{schema}.{table}_streams`): `stream` (PK), `source
|
|
160
|
+
- **Events** (`{schema}.{table}`): `id` (serial PK), `name` (text), `data` (jsonb), `stream` (text), `version`, `created` (timestamptz), `meta` (jsonb). Unique index on `(stream, version)`.
|
|
161
|
+
- **Streams** (`{schema}.{table}_streams`): `stream` (text, PK), `source` (text), `at`, `retry`, `blocked`, `error`, `leased_by`, `leased_until`, `priority`. Composite index on `(blocked, priority DESC, at)` for the saturated-claim ordering.
|
|
162
|
+
|
|
163
|
+
Identifier columns are `text`, not a bounded `varchar`. They were `varchar(100)` before [#1420](https://github.com/Rotorsoft/act-root/issues/1420); the seed ladder widens existing tables in place. The cap mattered because the framework *derives* identifiers from stream names — an `.autocloses` target is `"__autoclose__:" + stream` — so an 87-character stream committed fine and then failed to subscribe, which pinned the correlate checkpoint and stalled every dynamic reaction in the app. `text` and `varchar` are byte-identical in PG storage and indexing, so there is no cost to the wider type.
|
|
162
164
|
|
|
163
165
|
## Operational concerns
|
|
164
166
|
|