Skip to content

Status and Roadmap

Mohammad Rasoul Kazemi edited this page Dec 2, 2026 · 32 revisions

Status and Roadmap

This page is a reader's summary of the phase table in kingres/README.md, which is the authority, and of the roadmap in kingres/docs/architecture.md. When this page and the README differ, the README is right. See Product Overview and Features for a capability view and Limitations and Known Issues for the stated limits.

The current release is 0.2.2, published on 2026-12-02 (tags kingres-0.2.2-pg18 and kingres-0.2.2-pg19, for PostgreSQL 18.7 and 19.0); its notes are on Release Notes. It follows 0.2.1 (2026-12-02), 0.2.0 (2026-11-30) and the first release, 0.1.0, with its patch release 0.1.1 (both 2026-11-28); all four are now superseded. The project owner decided on 2026-11-15 that the first release contains every phase except phase 8 (phases 0 to 7, 2b and 9 to 13), and later added phases 14a, 14b and 14c; 0.2.0 added phase 15 (extension management, without pg_cron) and kingres-cli, and 0.2.1 brought pg_cron back and added task 1 of phase 18. Every phase from 0 to 15 except phase 8 is built. Phase 8 is in design since 2026-11-28 and not built; the next releases are 0.3.0 and 0.4.0 (see "Release plan" below).

"Done" in the README means written, tested and reviewed where the work log says so. The reviews are reports under kingres/docs/reviews; the dated record of the work is the work log.

The phases

Phase What State Design
0 Foundation: fork, branches, rebrand, licence Done ADR 0024
1 Sharding MVP Done shard-mvp.md
2 Distributed DML and DDL, two-phase commit, reference tables Done shard-phase2a.md
2b Pushdown, row router, colocated joins Done shard-phase2b.md
3 Control plane, REST API, console, package Done control-plane-2.md, control-plane-3.md
4 Bucket movement and rebalance Done shard-phase4.md
5 High availability Done: standbys, failover, automatic failover, planned switchover, restore of preferred primaries, switchover and hard failover of the map group (lostServerId), local release of a held map group, and escrow of the CA key (off until switched on) ha-phase5.md, ha-phase5-part2.md
6 Ledger Done (kingres_ledger 0.3, the verifier, the Ledger page) ledger-mvp.md, ledger-0.2.md
7 Signing, anchoring, publication, aggregate digest Done, except step 24 (an external signer command, publication mirrors, the anchor probe from another server), which is not in the first release ledger-phase7.md
8 Atomic visibility of distributed transactions, multi-node ledger (witnesses and a BFT notary of checkpoints) In design; parts built on unmerged branches of another line of work; no fixed release (ships once all its increments are finished) architecture.md
9 Table lifecycle Done, including distribute with related tables and the operation indicator of a table shard-phase9.md
10 Elasticity Done: strategies, weights, automatic mode, drain (with the hand-over of the map group), bucket split, the standby lag rule shard-phase10.md
11 Distributed schemas Done, including schema items in rebalance plans and the drain shard-phase11.md
12 Real-time analytics Done: kingres_sketch 1.0, kingres_columnar 0.2, kingres_timepart 0.3; repartitioned joins, MERGE, columnar tables and approximate count(DISTINCT) in kingres_shard 0.9; time partitioning of distributed tables; control plane and console analytics-phase12-queries.md, analytics-phase12-storage.md
13 Configuration from the console Done config-phase13.md
14a Table CSV export and import Done data-export-import.md
14b, 14c Database export and import Done; the archive is checked as hostile input data-export-import.md
- Security hardening of the extensions, pg_stat_statements and PL/pgSQL Done: the extensions do not trust a schema that another role can write to; pg_stat_statements is preloaded and created in every database made by kingresd; plpgsql is in every such database operator guide
15 Management of third-party extensions Released in 0.2.0 (2026-11-30): the registry, cluster-wide install, the preload allowlist, the console and kingres-cli, and the packaging of pgvector and pgaudit (Debian package, image and the RPM packages). pg_cron was built and then withheld from 0.2.0 (it is bundled again and switchable in 0.2.1, released 2026-12-02); the pushdown for pgvector and PostGIS and PostGIS itself are not built Extensions
16 Build options of the released packages (GSSAPI, LDAP, PAM, PL/Python, PL/Perl and JIT on; PL/Tcl and NLS only on request) and extension packages (RPM targets, a kingres-dev package) Designed and decided (2026-11-30); ships in 0.3.0; nothing built design, Architecture Decisions (ADRs 0041 to 0046)
17 Benchmarking, chaos testing and performance (cluster benchmarks against PostgreSQL with Patroni, including moves and analytics, a chaos harness, performance work driven by them) Designed and decided; the last item of release 0.4.0, run when phases 22 to 24 are finished, on 0.4.0 code; not built architecture.md
18 Ledger: trust anchors completed (the anchors check and the scheduled publication audit; runs against real authorities) Task 1 released in 0.2.1 (2026-12-02): the check anchors, the scheduled audit of the publication, three alerts, contract 0.36.0, ADR 0059; task 2 (runs against real authorities) not done and not scheduled; L1: only OpenTimestamps calendars architecture.md
19 Upgrade of a cluster from the console (the package from the GitHub releases or an upload, verification on every server, a root-owned helper, preflight, one task that upgrades the servers and then the extensions) Planned to ship with release 0.3.0 and built in parallel; not designed in detail, not built. Decided by the owner on 2026-11-29 (ADRs 0035 to 0037), no open decision of the owner architecture.md
20 Memory warm-up of tables from the console (a Warm-up section that sizes the memory of each server and warms the chosen tables on every server, the automatic prewarm, warm tables kept warm within a budget, a memory profile, huge pages, a separate WAL directory) Designed and decided (M1 to M29; stop button for the automatic prewarm added); ships in 0.3.0; nothing built architecture.md
21 KingresDB on Kubernetes: a Helm chart, then an operator that manages pods, volumes, scaling and upgrades and leaves failover to kingresd Planned for release 0.3.0 (chart and operator together, with phases 16, 19 and 20); designed (2026-11-29), owner decisions K-a to K-q recorded 2026-11-30 (ADR 0053); depends on phase 19 building the image variant of its upgrade; not built architecture.md
22 Backup and restore: incremental physical backups, a WAL archive, repositories on S3-compatible storage and directories, a cluster restored to a coordinated restore point, one database or one table restored through a scratch restore Designed and decided; the first item of release 0.4.0; not built architecture.md
23 Clone and snapshot of a database and of a table: a clone as a template or with data, snapshots and going back Designed and decided; release 0.4.0, after phase 22; not built architecture.md
24 Live transfer of a database, in and out: from another PostgreSQL into KingresDB and from KingresDB into another PostgreSQL, by logical replication, with a cutover started by an administrator Designed and decided; release 0.4.0, after phase 22, both directions together; not built architecture.md

The research and the design of phases 9 to 12 and 13 are in the roadmap section of the architecture document. A comparison with the documentation of Citus 13.0 led to phases 9 to 12.

Release plan (decided 2026-11-30)

The project owner decided on 2026-11-30 (ADR 0057, and ADR 0058 for the plan after 0.3.0):

Release Content
0.2.0 Released on 2026-11-30: phase 15 (extension management, with pgvector and pgaudit), kingres-cli, RPM packages, kingres_shard 0.10, Docker Hub images, signed checksums
0.2.1 Released on 2026-12-02: phase 18 task 1 (the anchors check and the scheduled publication audit), pg_cron (bundled again, with the settings cron.use_background_workers, cron.max_running_jobs and cron.database_name accepted at the cluster level, two restarts for a first switch-on, the grant on the schema cron to kingres_admin, 409 on dropping the database of pg_cron and on removing a preload library with stored values; see Extensions), and fixes (the preload list of a standby copied while the list changes, the administration grant of roles, the reported certificate fingerprint); also the source cache for the extension build, pinned RPM builder packages (renewed with every release, Fedora and EPEL), the release script check of the executable bit and the signed-checksums text of the release notes, see Release Process; REST contract 0.37.0, 199 operations
0.2.2 Released on 2026-12-02 (decided the same day, ADR 0060): a patch release because automatic failover was slow when a server vanishes instead of crashing (the decision was on time, the start about 14 minutes later; no data was at risk). Made from the maintenance branches kingres-18-0.2 and kingres-19-0.2, cut from the tags of 0.2.1; nothing of 0.3.0. It carries the failover fix (a connect timeout, no waiting for a server counted as lost, the data-loss verdict aged from the last contact of a majority; a vanished primary's group took writes again after about 82 s on PostgreSQL 18 and 71 s on 19, no acknowledged row lost; in a cluster of two servers a vanished server still pauses the failover for an operator), the fixes of the main branch that matter to a running 0.2.1 cluster (the settings of a server changed by two writers at once, a port clash recognised from the log directory, the job count reaching the bundled extensions, the image build on a clean cache, pg_read_server_logs off the dangerous-roles list) and renewed Fedora builder pins. REST contract 0.37.0, no migration. See Limitations and Known Issues and Release Process
0.3.0 Phases 16 (build options and extension packages), 19 (upgrade from the console), 20 (memory warm-up) and 21 (a Helm chart and an operator, together)
0.4.0 Phase 22 (backup and restore, with PostgreSQL native incremental backup) first; then phase 23 (clone and snapshot) and phase 24 (live transfer, both directions together, the outgoing direction pushed first); phase 17 (benchmarking and chaos testing) last, run when the others are finished and before 0.4.0 is released
No fixed release Phase 8 (atomic visibility and the multi-node ledger): it ships in the next release once all its increments are finished; parts are built on unmerged branches

Phase 21 in 0.3.0 depends on phase 19 supporting clusters that run only in containers. Nothing of phases 16 to 24 is built yet; every design records the owner decisions and its open points.

On 2026-11-30 the parts of the designs rewritten after the owner's decisions were reviewed independently, and the designs of 0.3.0 and 0.4.0 were read together for the first time. Every design was corrected, and the integration plan now holds the allocation of numbers, one exclusion matrix, what each design relies on from the others, and the build order with its critical paths (phase 19 accepting the container requirements for 0.3.0; two gating trials of the incoming live transfer for 0.4.0). The owner answered a second round of 23 questions the same day; nothing in the designs of phases 16 to 24 waits for the owner any more except a few points set later (the time limit of the wait of 0.4.0 for phase 17, the profile ratios of phase 20 after the measurements, when pull ships in phase 24). If phase 19 cannot support container clusters in time, the operator ships without upgrades and 0.3.0 is not held; if the incoming live transfer is held up by its gating trials, the outgoing direction ships alone in 0.4.0.

Phases 15 to 24 and 8

  • Phase 15, third-party extensions. The aim is to install and manage extensions that are not part of KingresDB from the console, on every server. It is released in 0.2.0 (2026-11-30): the registry, the refusals, the cluster-wide statements, the feature locks in sharding and in kingres_timepart, kingres_columnar, kingres_ledger and kingres_sketch, the table rules and the schema rule (KE005), the standby check at registration, the new check_cluster findings, the preload list, the control plane, the console and the command line (kingres_shard 0.10, kingres_timepart 0.4, contract 0.35.0); 0.1.0 and 0.1.1 have none of it. pgvector 0.8.7 and pgaudit are bundled in the Debian package, the image and the RPM packages. pg_cron is not part of 0.2.0: it was built and tested and then withheld, because it could not be switched on through the control plane (its required settings are hidden parameters that the configuration API refused); it is bundled again in 0.2.1 (released 2026-12-02). The pushdown for pgvector and PostGIS is not built. An extension that duplicates a function of KingresDB (Citus, TimescaleDB) is refused for good. See Extensions.
  • Phase 16, build options and extension packages. Planned on 2026-11-29 after an objection about compatibility with the PostgreSQL ecosystem, and designed, not built (the design is build-options-phase16.md). The owner decided D1 to D3 on 2026-11-29: GSSAPI, LDAP, PAM, PL/Python, PL/Perl and JIT are switched on in the released packages, PL/Tcl and NLS only on request; authentication is in the main package, each language and JIT are optional packages of the same version, and kingres-dev is separate; the authentication libraries become hard dependencies after measuring. ADRs 0041 to 0043 are Accepted, 0044 to 0046 are Proposed. No release has any of it: until it is built, the packages have no gss, ldap or pam method, no PL/Python or PL/Perl and no JIT. See Architecture Risks and Technical Debt, section 5.
  • Phase 17, benchmarking, chaos testing and performance. Planned for after release 0.3.0: cluster benchmarks of one PostgreSQL server, PostgreSQL with Patroni, one KingresDB server and a KingresDB cluster (including the cost of a bucket move and a hybrid analytic workload), a chaos harness for failover, and performance work driven by the results. Nothing of it is built. See Architecture Risks and Technical Debt, sections 6 and 8 to 11.
  • Phase 18, ledger trust anchors completed. The check anchors of a ledger verification and the scheduled audit of the publication, and recorded runs against real time-stamp authorities. Task 1 is released in 0.2.1 (2026-12-02): the check anchors of startLedgerVerification, the scheduled audit of the publication every 24 hours by default, the alerts ledgerPublicationAltered (critical, sticky until acknowledged), ledgerPublicationBehind and ledgerPublicationUnreadable, REST contract 0.36.0 and kingres-cli ledger check-reports, check-report, audit, audit-set, audit-now and audit-ack (see Ledger Anchoring). Task 2, the runs against real authorities, is not done and not scheduled. See Architecture Risks and Technical Debt, section 7.
  • Phase 19, upgrade of a cluster from the console. Planned to ship with release 0.3.0 and built in parallel with other work. Decided by the owner on 2026-11-29: the package comes from the GitHub releases (an upload for a cluster without outbound access), an upgrade starts only when an administrator starts it, a small root-owned helper installs only packages signed by a trusted release key, the pause of writes is measured first, no rollback is promised, and the release key is rotated in the standard way with keys added by an administrator. Nothing of it is built. See Architecture Risks and Technical Debt, section 12 and Upgrades.
  • Phase 20, memory warm-up of tables from the console. Added on 2026-11-29 at the owner's request: a table chosen in the console is kept in memory (warmed with pg_prewarm and kept warm, not an in-memory table), by the cluster itself on every server, and the memory of the cluster is arranged for speed (a memory profile, huge pages, the WAL on a separate device). The feature is off until an administrator switches it on and every part of it is a setting; ten rules keep it from disturbing the use of the system. Planned for release 0.3.0 as a whole (the owner decided against stages). The design is written and was reviewed and revised twice; the reviews reworded several rules to what PostgreSQL can deliver (a bounded wait in front of other statements, not none). A memory calculator keeps the shared buffers of a server below a ceiling of its physical memory (50 percent by default). Nothing is built. See Memory and Warm-up.
  • Phases 21 to 24. Added on 2026-11-29 at the owner's request, each usable from the console and from kingres-cli. 21, KingresDB on Kubernetes: a Helm chart and an operator; kingresd stays the authority for failover, fencing and membership, so the operator manages Kubernetes objects and asks kingresd for everything else. 22, backup and restore: incremental physical backups and a WAL archive to S3-compatible storage or a directory; a whole cluster is restored to a coordinated restore point (there is no global snapshot, so a time of day is not a consistent target across shard groups); one database or one table is restored by restoring its instance to a scratch place and taking it out. 23, clone and snapshot of a database (structure only or with data) and of a table, and going back to a snapshot; a snapshot on the same disks is not a backup. 24, live transfer of a database in both directions by logical replication, with a cutover that an administrator starts; postgres_fdw and dblink stay refused. All four are planned, not scheduled and not built. Their designs were written on 2026-11-29, reviewed independently for their facts and their safety, and corrected; they await the owner's decisions. See Limitations and Known Issues for what exists today.
  • Phase 8, atomic visibility of distributed transactions and a multi-node ledger. The project owner decided on 2026-11-28 to build phase 8; it is in design and nothing of it is built or shipped. Part 1, atomic visibility, is designed so that a covered read-only statement over several shard groups never sees a two-phase-commit transaction on one group and not on another. It is not a global snapshot: there is no causal order across groups, no snapshot isolation, and write skew remains. It is off by default (modes off, record, observe, enforce, with a kill switch), makes no change to the PostgreSQL core (ADR 0032; a timestamp design was rejected for that reason), and does not cover REPEATABLE READ or repartitioned joins in its first release. Part 2, the multi-node ledger, is independent witnesses (k-of-n cosignatures) and a CometBFT notary of checkpoints, in the same release as part 1, with test witnesses and validators run by the project (one trust domain: they prove the mechanism, not independence). Until phase 8 is built and released, a statement that spans shard groups reads each group at its own snapshot, and the ledger has one chain per shard group.

Details by area

Sharding (phases 1, 2, 2b, 4, 9, 10, 11)

  • Phases 1 and 2: see Sharding.
  • Phase 2b: reads and writes that earlier needed the row-moving scan have faster paths (closed queries, partial aggregation, sorted streams with limit, joins of colocated tables, a row router for bulk writes). The complete scan stays as the fallback for every query (ADR 0022). See Sharding Query Pushdown.
  • Phase 4: kingres_shard moves buckets and the control plane drives a rebalance as a task, with stop, resume and reports. A rebalance runs one move at a time by default. See Rebalancing.
  • Phase 9: distribute a table that already holds rows (blocking and online), make it ordinary again, change the distribution column, the bucket count or the colocation group, distribute user-partitioned tables, carry dependent views, and distribute related tables together. See Sharding Table Lifecycle.
  • Phases 10 and 11: splitting a bucket, weights per server, plans by disk size, an automatic mode (off by default), draining a server with the hand-over of the map group, and distributed schemas placed and moved as units.

High availability (phase 5)

Failover is part of kingresd and is fenced by leases. Built: standbys, manual and automatic failover (off by default), planned switchover of an ordinary group and of the map group, hard failover of the map group while its server is alive, restore of preferred primaries, local release of a map group that is held back for good, and escrow of the certificate authority key. Failover is new in the first release, and the limitations page says what is not tested on a cluster. See High Availability.

Ledger (phases 6 and 7)

kingres_ledger 0.3 with blocks, digests, inclusion proofs, client signatures and a write guard; signing keys, a transparency log per chain, an aggregate log per database, a publication listener, anchoring to a WORM object store, an RFC 3161 authority and OpenTimestamps (the last two tested against local fakes only), bundles, and the verifier kingres-verify. Not in the first release: an external signer command, publication mirrors, the anchor probe from another server, the scheduled audit of the publication and the check anchors of a verification. See Ledger, Ledger Signing and Publication, Ledger Anchoring and The Verifier.

Analytics (phase 12)

kingres_sketch 1.0, kingres_timepart 0.3 and kingres_columnar 0.2, and in kingres_shard 0.9 the repartitioned join, MERGE on distributed tables, distributed columnar tables and approximate count(DISTINCT). The control plane has approximate aggregates, conversion between row and columnar storage and time-partitioning policies with a scheduler. See Analytics Extensions. Since 0.2.0 (kingres_shard 0.10): the repartitioned join ships up to three tables and a table that an outer join preserves, a join of tables of two colocation groups is a repartitioned join, and UPDATE ... FROM and DELETE ... USING run on the groups (Sharding Query Pushdown, Limitations and Known Issues).

Configuration and transfers (phases 13 and 14)

PostgreSQL parameters and time can be changed from the console with preview warnings (Configuration). A table is exported and imported as CSV, and a database is exported as one archive and imported from it; both are off until the cluster setting dataTransfer.enabled is on (Administrator Guide).

Versions

Releases 0.2.0, 0.2.1 and 0.2.2 carry kingres_shard 0.10, kingres_ledger 0.3, kingres_sketch 1.0, kingres_timepart 0.4 and kingres_columnar 0.2 (packaging README); the first release carried kingres_shard 0.9 and kingres_timepart 0.3. The REST contract is 0.37.0 in 0.2.1 (199 operations) and 0.35.0 in 0.2.0 (192 operations; 0.34.0 and 178 operations in 0.1.0 and 0.1.1; api README). The bases are PostgreSQL 18.7 and PostgreSQL 19.0.

Related pages

Where the history is

Sources

Clone this wiki locally