GitHubWaitlist

Changelog / Chronos DB

Chronos DB 0.9.3

Tenant agents, attach refresh, and queries after a burst of writes

Beta8 changesDownloads

Tenant agents, attach refresh, and queries after a burst of writes. An agent held to a tenant can no longer reach another tenant's rows through a foreign key, a refresh survives a reload that reuses unique values, and queries no longer stall rebuilding one search index. Nothing changes in how rows are stored: 0.9.3 opens and writes data format 8 as 0.9.2 does. Built and signed on the maintainer's Mac as 0.9.2 was.

  • Queries no longer pile up rebuilding one search index. When a table had changed past what its cached search index can catch up on (a twentieth of it, after a burst of writes), every query that needed the index rebuilt it from the whole table at once: 32 concurrent list queries on a 30,000-row table took seconds each, and an agent run's SELECT up to 5 s. One query now builds it and the others wait for it and use it.
  • Tenant agents: a foreign key finds only the tenant's parent rows. An agent held to a tenant could insert a child pointing at another tenant's row, and its foreign-key errors told it whether another tenant's ids existed. Statement writes and checks deferred to COMMIT now look parents up among the tenant's own rows (#502). A char(n) tenant column compares without trailing blanks (#511).
  • Tenant agents: deleting a parent touches no other tenant's child. CASCADE, SET NULL and SET DEFAULT into rows the agent can't read are refused as RESTRICT, and the refusal names no other tenant's ids (#512).
  • Attach refresh survives a reload. Rows deleted in Postgres and inserted again under new keys with the same UNIQUE value failed the whole refresh with 23505. A refresh now applies deletes first, and a lazy (per-tenant) attach checks every attached table's foreign keys once replayed, holding NOT VALID foreign keys as Postgres does (#504, #505, #507, #509, #510).
  • COMMIT no longer loses a transaction to a deferred trigger's nextval, and 20 smaller fixes from TODOS, among them a quoted built-in type name following a search_path that puts a schema with that type first (#513).
  • One DROP FUNCTION ... CASCADE through two functions of one table changes it once, from what the statement left: a later function's ALTER no longer writes back an index or trigger the first dropped (#514).
  • Merges judge CHECKs against what the merge makes. RANK WORLD SET's prospective merge rebuilds index entries from the rows, so a merge check's indexed lookup finds a row both sides changed; a merge's CHECKs call the functions of the merged state when both sides replaced functions (#516).
  • Smaller fixes: an aggregate's argument types read back without the caller's search_path; DROP COLUMN of a column in a multi-column UNIQUE is tested; a file:// remote works in builds without S3 (#516).

Release checks: the supply-chain step (no advisory, every licence on the list; SBOM attached as chronos-0.9.3.cdx.json); the release gate (crash points, kill -9 under concurrent merges, simulated interleavings, fuzz tests at 100,000 rounds, the tenant-agent simulation); the cargo-fuzz targets, 10 minutes each with no crash (sql_parse 1.29 million inputs, sql_run 0.67 million); a 10-minute soak; the whole suite on the Mac (2,939 tests, 2,931 passed, 8 known failures, none outside tests/known_failures.txt); the Linux gate passed on Ubuntu 24.04, x86_64, against Postgres 16.16 (commit 2106e4b: 2,939 tests, 2,927 passed, 12 known failures, 17 skipped; S3 against moto, doctests, the installer test and the latency budgets passed; summary attached as linux-gate-summary.md). Drivers and ORMs: psycopg, SQLAlchemy, Django, Alembic, LangGraph, a pytest fixture, node-postgres, Knex, Prisma, TypeORM, Sequelize, JDBC, Flyway and Hibernate passed; pgx and GORM were not run (no Go toolchain on the Mac).

Chronos DB 0.9.3 · Chronos