Repository navigation
Release Process
The first release, 0.1.0, was published on 2026-11-28, and so was its patch release 0.1.1 (see "Patch releases" below). The tags are kingres-0.1.0-pg18 (on kingres-18) and kingres-0.1.0-pg19 (on kingres-19), with one GitHub release for each (kingres-0.1.0-pg18, kingres-0.1.0-pg19); the changelog heading reads ## [0.1.0] - 2026-11-28. The project owner decided that the first release contains every phase of the roadmap except phase 8 (atomic visibility and the multi-node ledger; in design, nothing built) and phase 15 (third-party extension management, designed, after 0.1.0), and that nothing was tagged or published before they were finished (Status and Roadmap). This page describes the process of releases.md and the script release.sh; the script was used for the release 0.1.0 (its own test, kingres/packaging/test/test-release.sh, runs it against a small test repository).
KingresDB is released for every supported PostgreSQL major at the same time, from one state of its own code (ADR 0023). Whoever installs it chooses the major. A cluster runs one major: all its servers are installed from the same branch, and moving a cluster from one major to the next is a separate procedure that is not designed yet.
A release is one commit of kingres-18 and the sync commit of kingres-19 made from it, both tagged, with the artifacts built from each. Branches and the sync rule are on Branching and Synchronisation.
| Thing | PostgreSQL 18 | PostgreSQL 19 |
|---|---|---|
| Tag | kingres-<version>-pg18 |
kingres-<version>-pg19 |
| Debian package | kingres_<version>+pg18-<revision>_amd64.deb |
kingres_<version>+pg19-<revision>_amd64.deb |
| RPM, one per target (RHEL 9 and 10 families, Fedora 44 and 45; from 0.2.0; 0.1.0 and 0.1.1 have none) |
kingres-pg18-<version>-<revision>.el9.x86_64.rpm, .el10, .fc44, .fc45
|
kingres-pg19-<version>-<revision>.el9.x86_64.rpm, .el10, .fc44, .fc45
|
| Image tag | kingres:<version>-pg18 |
kingres:<version>-pg19 |
| What the server reports | 18.x (KingresDB <version>) |
19.x (KingresDB <version>) |
<version> is kingres_version in the top-level meson.build (0.1.0 at the first release), the same on both branches. kingres:<version> without a suffix is not published: the major is always chosen explicitly. Release tags point to commits of the product branches and are never moved. Upstream PostgreSQL tags are never pushed. The packages are .deb files and a container image; there is no rpm and no arm64 build.
On each branch:
- The whole tree builds without a compiler warning and the upstream regression suite passes (checks
tree-buildandcore-regress). - The suites of every KingresDB extension pass in tree (
extension-suites). - The integration suite of the control plane passes against instances of that major (
integration). - The package tests pass: the Debian package, the RPM of every target (from 0.2.0; not required with
--skip-rpm), the image and the three-node compose cluster (package-deb,package-rpm-<target>,package-rpm-selinux-<target>,package-image,package-compose). The targets are listed inpackaging/rpm/targets.txt(el9, el10, fc44, fc45, each with a base image pinned by digest); the script builds the RPM once per target and refuses a release in which a target of that list is missing on either product branch, so a target is never dropped silently. - The console's checks pass; they do not depend on the major and are run once (
console, majorall). - The two branches agree:
git diff kingres-18 kingres-19 -- 'contrib/kingres_*' kingresprints nothing. - Both branches are on a final upstream release (a pre-release such as
19rc2is refused). - The heading of the release in
kingres/CHANGELOG.mdcarries its date, set by hand in the commit that is tagged (for the first release## [0.1.0] - 2026-11-28in place of## [0.1.0] - not released). The script reads the changelog from the commit--commit18and never edits it. The heading must still start with## [<version>], and the section must have no### Pendingpart.
GitHub Actions are not used. Actions is off for the repository and no workflow is published; every check runs on a developer's machine, and its result goes in the work log and in the record of checks below.
kingres/packaging/release/release.sh makes a release from the two product branches:
kingres/packaging/release/release.sh --version <version> --commit18 <sha> --commit19 <sha> \
--checks-file <record> --out <dir> [--work <dir>] [--revision N] [--skip-images] [--sign-tags] [--dry-run]
-
Gates. All are checked, every failure is listed, nothing is built if one fails: a clean working tree (untracked files count);
kingres-18andkingres-19at the commits named;kingres_versionofmeson.buildequal to--versionon both; PostgreSQL major 18 and 19, both final releases;contrib/kingres_*andkingresidentical on both commits; neither tag exists;kingres/CHANGELOG.mdhas a section## [<version>]without a### Pendingpart; the release-notes template exists; the record of the final checks says every required check passed on the right commit; the output directory is empty; Docker is available unless--skip-imagesis given. -
Builds, per major, from the commit of the branch:
build/build.sh,deb/build-deb.shand, unless skipped,docker/build-image.shanddocker save. Artifacts go to<dir>/pg18and<dir>/pg19. -
Checksums:
<dir>/SHA256SUMS, checked withsha256sum -c. They are not signed. -
Release notes:
<dir>/RELEASE-NOTES.md, made fromkingres/docs/release-notes-template.mdwith the changelog section, the artifacts and the recorded checks. -
Tags:
kingres-<version>-pg18andkingres-<version>-pg19are created locally, as annotated tags (signed with--sign-tags), on the two commits, as the very last step. - It prints the manual steps and stops: pushing the branches and the tags, and creating the GitHub release of each tag with its files. The script never pushes and never contacts GitHub.
--dry-run runs every gate and prints the plan and the manual steps; it builds nothing, writes nothing, creates no tag and exits non-zero when a gate fails. Without Docker, --skip-images builds the packages only; the notes then say the images were not built, and the image checks are not required. Signing the checksums, signing packages and images and publishing them are the project owner's decisions and are not part of the script.
A text file kept by whoever ran the checks, one line per run: <commit> <major> <check> <pass|fail> [text], where <major> is 18, 19 or all; lines that start with # and blank lines are ignored. The required checks are, per major, tree-build, core-regress, extension-suites, integration, package-deb, package-image and package-compose (the last two not with --skip-images), and for all the console check. A later line replaces an earlier one for the same major and check, and a check recorded on another commit does not count (the commit must be the one named by --commit18 for 18 and all, and by --commit19 for 19). The script does not run these multi-hour suites; it refuses to release without them. Without --checks-file every run is refused, and a dry run reports the missing record as a failed gate.
kingres/packaging/build/build.sh builds from a clean snapshot of a revision (so uncommitted work is never built): the server, client programs and contrib modules with meson as an optimised build with assertions off, the web console, and kingresd with the console embedded, as static Linux binaries; then it stages an installation tree under /opt/kingres. The image and the .deb are made from that tree. The recipe reads the PostgreSQL major from the source it is given and checks it against the server it built, so the major is never typed twice. The toolchain versions (Go, Node.js) and their checksums are pinned in kingres/packaging/build/versions.env, and changing them is a reviewed change. See Installing and Packaging.
Push the branches and the tags, then create the GitHub release of each tag with its files.
The verifier release. A KingresDB release makes only the product tags kingres-<version>-pg18 and kingres-<version>-pg19; no separate v<version> tag is made. The signed release of the verifier (kingres/verifier/scripts/release.sh) is therefore cut with --tag kingres-<version>-pg18, by the holder of the release key, on a machine with the Go release of its go.mod (1.27.3). It builds the verifier files, writes SHA256SUMS, signs it with the release key (Ed25519, key name kingres-verify-release) and verifies the signed note it made before it prints anything. The public key and its fingerprint are on The Verifier, section "The release key", and in the verifier's README.
A patch release of a minor line is made on a maintenance branch of that line, so that the new work of the product branches stays out of it. 0.1.1 (2026-11-28) is the first one: kingres-0.1.1-pg18 is commit b70e7d0c90 on kingres-18-0.1, and kingres-0.1.1-pg19 is commit c796d5f43f on kingres-19-0.1. How it was made, as the record for the next one:
- The tags were made by hand; the release script was not used for them.
- The checksums were signed with tools built from
kingres-18, because therelease.shin the tag predates the signing:kingres-SHA256SUMSandkingres-SHA256SUMS.note, signed with the release key. They are checked with a verifier built fromkingres-18after 2026-11-28 (Installing and Packaging, The Verifier). - The verifier was not released again; its files stay on the page of
kingres-0.1.0-pg18. - The heading of the
[0.1.1]section in the CHANGELOG of the tags carries the date 2026-11-29 by mistake; the real date is 2026-11-28, and the tag is not moved. - The release pages of 0.1.0 were edited to say "Superseded by 0.1.1".
What 0.1.1 fixes is on Release Notes.
The maintenance branches are never merged into the main branches. Fixes flow one way, from the main branch to the maintenance branch, commit by commit; the version commits and release notes of a patch release stay on the maintenance branch only.
How long a maintenance branch lives. GitHub keeps only the maintenance branches of the line of the newest release (decided by the project owner on 2026-12-02). When a release is published, the maintenance branches of every older line are deleted from GitHub in the same sitting, after a check that each branch ends at the commit of the last release tag of its line; for example kingres-18-0.2 and kingres-19-0.2 are deleted when 0.3.0 is published. The release tags are never deleted: they keep the code, and a deleted maintenance branch can be made again from its last tag if a fix is ever needed. kingres-18-0.1 and kingres-19-0.1 were deleted on 2026-12-02 (they ended at the tags kingres-0.1.1-pg18 and kingres-0.1.1-pg19).
The release images are public on Docker Hub as kingres/kingres:<version>-pg18 and kingres/kingres:<version>-pg19, and latest-pg18 and latest-pg19 point to the newest release; there is no tag without the major. Every release pushes its images there too, by hand after the release pages exist (the script prints the steps and never logs in or pushes):
- Load each published archive after checking its SHA-256 against the signed
kingres-SHA256SUMS. - Tag it
kingres/kingres:<version>-pgNNand push it; then movelatest-pgNNto it. - Check that the label
org.opencontainers.image.revisionis the commit of the tag. - Log in only with
--password-stdin, and log out right after the pushes. The archive stays on the release page. - Update the overview of the repository on Docker Hub (its front page) in the same sitting: the new rows of the tags table,
latest-pgNNon the new rows, which version to use, the quick start, and every open known issue; then read it back without logging in. (The overviews of 0.2.1 and 0.2.2 were updated on 2026-12-02.)
Everything in this section is part of release 0.2.1 (2026-12-02, tagged on kingres-18 and kingres-19); 0.2.0 does not have it.
-
The release script checks the executable bit.
release.shrunspackaging/test/test-modes.shon both release commits before anything is built and refuses the release, naming the files, when a*.shfile or Debian maintainer script ofkingres/packagingis not committed as 100755.packaging-modesis a required check of the record of the final checks. -
The source archives are fetched first.
release.shfills the source cache of the bundled extensions for both commits after the gates and the key and before its first build, and refuses a release when it cannot (KINGRES_EXT_CACHE, default~/.cache/kingres/ext-sources). To release without a network at that moment, runpackaging/extensions/fetch-sources.shearlier on a machine that has one, copy the cache over and setKINGRES_EXT_FETCH_OFFLINE=1, so that a missing file is an error and never a download.release.shrefusesKINGRES_EXT_FETCH=0and alsoKINGRES_RPM_UNPINNED_BUILDERandKINGRES_EXT_ALLOW_UNPINNED. See Building from Source. -
The RPM builder packages are pinned.
packaging/rpm/pins/<target>.txtlists the exact version of every package of each builder (el9, el10, fc44, fc45);builder-packages.shinstalls those and checks that the installed set equals the list. The aim is that a builder layer rebuilt on another day is the same builder, so the bytes of the bundled extensions are the ones of the registry. The proof for the release record is one pinned build per family (el9 and fc45); it is part of the record of a release, so read the record of 0.2.1 in the developer release notes for what was shown. -
When the pins are renewed. Owner decision of 2026-11-30: the Fedora pins (fc44, fc45) and the EPEL pins (el10) are renewed with every release; the el9 and el10 pins also whenever a build says a pin is gone, when the base image digest of
targets.txtmoves, or for a security update of the toolchain the project wants. The release manager does it withpackaging/rpm/pin-builder.sh --target T(it records the packages of a fresh container of the base image, proves them in a second one, and writes the pin file only when the proof passes), a day or more before the release, not on the release day. If the renewed pins change an extension digest, the digest sets of that target are pinned again in the same commit; if not, nothing else changes. - What the AlmaLinux vault fallback covers. On el9 and el10 a pinned package that left the mirrors is looked for in the AlmaLinux vault of the minor release in the pin file. It does not help when that minor is still the current one and the vault has no tree for it yet (not shown either way; the fallback was shown only for a package of an earlier minor), when errata inside a minor replaced the build there too, or for EPEL (the vault has none, so a vanished EPEL pin on el10 has no fallback). Fedora keeps only the newest build of a package, so a Fedora pin can vanish within weeks and has no fallback. Every one of these stops the build before any compile and ships nothing unpinned.
-
Smaller changes. The release notes template now gives the check of the signed checksums with
kingres-verify release verify; the package tests (test-compose.sh,test-deb.sh,test-rpm.sh,test-image.sh) always end with their summary even when a diagnostic read fails;KINGRES_IMAGE_JOBS=8holds the compile jobs of the image build to 8 (see Installing and Packaging).
Decided by the project owner on 2026-12-02 (ADR 0060) and published the same day for PostgreSQL 18.7 and 19.0: kingres-0.2.2-pg18 is commit 4c7f8dc9c82ad450038ebfd31a5c6ef6f1e68e78 and kingres-0.2.2-pg19 is commit 10ff44579a89a0bc01bd6137bac3db4761f3c2c1 (marked latest). What it contains is on Release Notes.
- Why. In 0.2.1 and earlier a group whose primary's host vanishes (packets dropped, no answer) has no primary for many minutes, while a crashed server is failed over in about a minute. No data is at risk; the group is unavailable. See Limitations and Known Issues.
-
From maintenance branches. The main branches already hold work of 0.3.0, so 0.2.2 was made from
kingres-18-0.2andkingres-19-0.2, cut from the tagskingres-0.2.1-pg18andkingres-0.2.1-pg19, askingres-18-0.1andkingres-19-0.1were cut for 0.1.1. The changes were taken from the main branch commit by commit; nothing of 0.3.0 is in it. -
What went in. The failover fix; the fixes on 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,
pg_read_server_logsremoved from the list of dangerous predefined roles); the container build made to work on a clean Docker cache; the renewed pins of the Fedora 44 and 45 builders; and the version number. -
How it was made. The release script ran in a clean clone of the two maintenance branches, built the Debian package, the four RPMs and the image of each major, and signed the product
kingres-SHA256SUMSwith the release key. The downloads of the release pages were verified against the signed checksums withkingres-verify release verify. The images were loaded after the check of the signed checksums, tagged0.2.2-pg18and0.2.2-pg19, pushed to Docker Hub, andlatest-pg18andlatest-pg19were moved to them; the overview of the repository on Docker Hub was updated in the same sitting. - A step that was missed: the date. The tagged commits still say "not released" in the CHANGELOG heading and in the README and the guide; the date was set in the next commit of each maintenance branch, and the tags were not moved, because the images and the signed checksums name the tagged commits. A guard in the release script against this is being added on the main branches and is not merged yet.
-
The maintenance branches.
kingres-18-0.2andkingres-19-0.2stay on GitHub as the branches of the newest line; they are deleted when 0.3.0 is published. The 0.1 branches were deleted on 2026-12-02, after this release (the tags of 0.1.0 and 0.1.1 stay).
0.2.1 is the first patch release of the 0.2 line, made for both majors from the main branches kingres-18 and kingres-19 themselves (not from a maintenance branch; the main branches held only the work of 0.2.1): kingres-0.2.1-pg18 is commit f709a17d5a8279f931bf15e6087dea213fc20658 and kingres-0.2.1-pg19 is commit 7139e0939fc09eef6406a5dcea09a483841f6a07. kingres_version is 0.2.1 on both branches. Each GitHub release carries the Debian package, the four RPMs, the image archive and the signed kingres-SHA256SUMS, and the images are on Docker Hub (0.2.1-pg18, 0.2.1-pg19, latest-pg18 and latest-pg19). The final checks ran on the candidate commits on 2026-12-01; the tagged commits differ from them only in documents and test files, so the checks are carried over by the rule of the record of the final checks. A maintenance line (kingres-18-0.2 and kingres-19-0.2, made from these tags) is made only when a release 0.2.x after 0.2.1 is needed once the work of 0.3.0 has landed; it was used for 0.2.2 (see above). What it contains is on Release Notes.
0.2.0 is the second release, made for both majors from the commits of kingres-18 and kingres-19: kingres-0.2.0-pg18 is commit 3e5c5da47deb2ebd98323f23939ec615f1b3093d and kingres-0.2.0-pg19 is commit fd07b560bfac3b7b608d2c5ed55bcee5bb314c0f. It is the first release with RPM packages (one per target and major, four targets); its product checksums (kingres-SHA256SUMS and the signed note) are signed with the release key, and its images are on Docker Hub. What it contains is on Release Notes.
The images of 0.1.0 and 0.1.1 were pushed this way on 2026-11-28. See Installing and Packaging for how to pull and check one.
Each of the two GitHub releases carries the Debian package of its major (kingres_0.1.0+pg18-1_amd64.deb, kingres_0.1.0+pg19-1_amd64.deb), the container image of its major as a docker save archive (kingres:0.1.0-pg18, kingres:0.1.0-pg19), SHA256SUMS and the release notes (0.1.0 has no RPM and its SHA256SUMS is not signed; 0.1.1 has no RPM either, and 0.2.0 adds one per target and major; 0.1.1 and 0.2.0 sign the product checksums as kingres-SHA256SUMS with the note kingres-SHA256SUMS.note, next to the sums of the verifier). The signed release of the verifier (the binaries for linux-amd64, linux-arm64, darwin-arm64 and windows-amd64, RELEASE, SHA256SUMS and SHA256SUMS.note, signed with the key kingres-verify-release) is attached to the release of kingres-0.1.0-pg18. How to check the files is on Installing and Packaging and The Verifier.
kingres-18 is on upstream REL_18_7 and is the default branch. kingres-19 is on REL_19_0 (PostgreSQL 19.0, released upstream on 2026-11-16 and merged into kingres-19 on 2026-11-22 without a conflict); it is no longer a pre-release branch. The core patches are the same on both. The control plane's integration suite and the packaging checks run against both majors. The numbers of a run belong in the record of checks of that run, not on this page; see Limitations and Known Issues for what is known to be open.
Both branches were rewritten once on 2026-11-16 by decision of the project owner (see Branching and Synchronisation). It is not a precedent, and nothing is rewritten after the first release is tagged.
Support periods per major (PostgreSQL 18 is supported upstream until 2030-11-14, but KingresDB's own policy is open), the numbering relative to PostgreSQL's, and the upgrade of a cluster between majors.
- kingres/docs/dev/releases.md
- kingres/packaging/release/release.sh
- kingres/docs/dev/upstream-sync.md
- kingres/CHANGELOG.md
- kingres/packaging/README.md
- kingres/packaging/build/build.sh
- kingres/packaging/build/versions.env
- kingres/verifier/scripts/release.sh
- kingres/verifier/README.md
- kingres/docs/adr/0023-one-extension-source-for-several-majors.md
KingresDB's own code is licensed under AGPL-3.0-only. PostgreSQL code keeps the PostgreSQL License. Copyright of the project's own code: RooyeKhat Media Co. KingresDB is derived from PostgreSQL and is not endorsed by the PostgreSQL project. Repository | Licence | COPYRIGHT
KingresDB
1. Product
- Product Overview and Features
- Status and Roadmap
- User Guide
- Administrator Guide
- REST API Reference
- Web Console
- Command Line Client
- Extensions
- Limitations and Known Issues
- Release Notes
Features in detail
- Sharding
- Sharding Query Pushdown
- Sharding Table Lifecycle
- High Availability
- Ledger
- Ledger Signing and Publication
- Ledger Anchoring
- The Verifier
- Analytics Extensions
Administration
- Cluster Setup
- Servers Databases and Roles
- Rebalancing
- Configuration
- Memory and Warm-up
- Control Plane and REST API
- Upgrades
2. Architecture (arc42)
- Architecture
- Architecture Introduction and Goals
- Architecture Constraints
- Architecture System Context
- Architecture Containers
- Architecture Components
- Architecture Runtime Views Sharding
- Architecture Runtime Views Availability and Ledger
- Architecture Deployment
- Architecture Crosscutting Concepts
- Security Model
- Architecture Decisions
- Architecture Quality Requirements
- Architecture Risks and Technical Debt
- Enterprise Architecture
3. Data architecture
- Data Architecture
- Data Model Sharding
- Data Model Ledger
- Data Model System Database
- Data Model Analytics
- Data Lifecycle
- Backup Restore and PITR
- Data Security
- Data Quality and Integrity
4. Development
- Building from Source
- Development and Testing
- Repository Layout
- Coding Standards
- Branching and Synchronisation
- Testing Strategy
- Review Process
- Release Process
- Contributing
5. Operations