Skip to content

Installing and Packaging

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

Installing and Packaging

The current release is 0.2.2 (2026-12-02), which supersedes 0.2.1, 0.2.0, the first release, 0.1.0, and its patch release 0.1.1 (see "Download a release" below). This page describes the artifacts of a release, which the packaging directory builds from a branch of the repository, and the first run of a node. There are three kinds of artifact: a Debian package (.deb) and a container image, for amd64 on Ubuntu 24.04, and, since 0.2.0, RPM packages per major and system (RHEL 9 and 10 families, Fedora 44 and 45; amd64), kingres-pg18 and kingres-pg19, tested on AlmaLinux 9 and 10 and Fedora 44 and 45. All checks of the packaging run on developer machines; there is no CI workflow. The same text in full is the install guide, install.md. 0.1.0 and 0.1.1 have no RPM.

What the package contains

  • The server of the built major (PostgreSQL 18.7 or 19.0), its client programs (with a kingres- prefix, for example kingres-psql), all contrib modules, and the five KingresDB extensions: kingres_columnar, kingres_ledger, kingres_shard, kingres_sketch and kingres_timepart.
  • kingresd, one static Go binary with the web panel embedded, and kingres-watchdog, the lease watchdog next to it.
  • kingres-verify, the standalone ledger verifier (The Verifier).
  • Since 0.2.0 (0.1.0 and 0.1.1 have none): the two bundled third-party extensions pgvector (vector) and pgaudit, in /opt/kingres/extensions/<project>/ with links where PostgreSQL looks, in the Debian package, the image and the RPM packages. Since 0.2.1 pg_cron 1.6.8 is bundled too (off until it is switched on; it is not part of 0.2.0; Extensions).
  • The systemd unit kingres.service and a default configuration (package only).

kingresd writes shared_preload_libraries = 'kingres_shard,kingres_ledger,kingres_columnar,pg_stat_statements' for every instance it manages. A library whose file the installation does not have is left out (kingres_columnar and pg_stat_statements are the optional ones). The parameter is managed: the settings API refuses a change of it (config_parameter_managed). The list takes effect at a restart of the instance; an instance made by an earlier package gets the new list when kingresd starts and runs without the library until it is restarted. Until then CREATE EXTENSION kingres_columnar works and a columnar table can be read, but creating one, writing, and converting a partition to columnar storage are refused with a message that names shared_preload_libraries, and the control plane refuses a conversion until every instance of every server has loaded the library. See Analytics Extensions.

One release per PostgreSQL major

There is one package name, kingres, and the major is in the version: kingres_0.1.0+pg18-1_amd64.deb and kingres_0.1.0+pg19-1_amd64.deb. Only one can be installed on a system, and all servers of a cluster run one major. The preinst script refuses to install the package of the other major over an installed (or removed but not purged) one, or over a data directory of the other major, before anything is unpacked. There is no procedure to move a cluster between majors. The container image tags are kingres:0.1.0-pg18 and kingres:0.1.0-pg19.

Download a release

The current release is 0.2.2 (2026-12-02). It supersedes 0.2.1, 0.2.0, 0.1.1 and 0.1.0; the release pages of the older ones say "Superseded". 0.1.0 has a known wrong answer of the pushdown of some outer joins, 0.2.0 has the faults that 0.2.1 fixes, and 0.2.1 has the slow failover of a vanished server that 0.2.2 fixes (Release Notes). Install 0.2.2.

Major Release Files
PostgreSQL 18 kingres-0.2.2-pg18 (tag kingres-0.2.2-pg18, commit 4c7f8dc9c82ad450038ebfd31a5c6ef6f1e68e78) kingres_0.2.2+pg18-1_amd64.deb, four RPMs kingres-pg18-0.2.2-1.el9.x86_64.rpm, .el10, .fc44 and .fc45, kingres-0.2.2-pg18-image.tar.gz, kingres-SHA256SUMS, kingres-SHA256SUMS.note
PostgreSQL 19 kingres-0.2.2-pg19 (tag kingres-0.2.2-pg19, commit 10ff44579a89a0bc01bd6137bac3db4761f3c2c1; marked as the latest release) kingres_0.2.2+pg19-1_amd64.deb, four RPMs kingres-pg19-0.2.2-1.el9.x86_64.rpm, .el10, .fc44 and .fc45, kingres-0.2.2-pg19-image.tar.gz, kingres-SHA256SUMS, kingres-SHA256SUMS.note

The sums of 0.2.0 name the files of both majors by their plain names, without a folder, and are signed with the release key. Download the files of your major and the two sums files into one empty directory and check them:

sha256sum -c --ignore-missing kingres-SHA256SUMS
kingres-verify release verify --sums kingres-SHA256SUMS --note kingres-SHA256SUMS.note \
    --key kingres-verify-release+dc5771ec+AW28IvL0KLUPGpksjDjO9JpNUPiUkg9oJmwQ8Z2Ik5mt \
    --binary kingres_0.2.2+pg18-1_amd64.deb

Every line that is checked must read OK, and the second command must print VERIFIED. Take the key from the documentation (The Verifier), not from the download place, and use a kingres-verify built from this tag: the verifier of 0.1.0 refuses file names with a + and files over 256 MiB. The packages and images themselves are not signed, and there is no apt or dnf repository.

Install on the system you have:

sudo apt install ./kingres_0.2.2+pg18-1_amd64.deb                  # Ubuntu 24.04
sudo dnf install ./kingres-pg18-0.2.2-1.el9.x86_64.rpm             # or .el10, .fc44, .fc45 (the file of your system)
docker pull kingres/kingres:0.2.2-pg18                              # Docker Hub; or: docker load -i kingres-0.2.2-pg18-image.tar.gz

The release 0.2.1 (2026-12-02, superseded by 0.2.2). kingres-0.2.1-pg18 (commit f709a17d5a8279f931bf15e6087dea213fc20658) and kingres-0.2.1-pg19 (commit 7139e0939fc09eef6406a5dcea09a483841f6a07), with the same kinds of file as 0.2.2 (kingres_0.2.1+pg<N>-1_amd64.deb, kingres-pg<N>-0.2.1-1.<dist>.x86_64.rpm, kingres-0.2.1-pg<N>-image.tar.gz, signed kingres-SHA256SUMS); its images are kingres/kingres:0.2.1-pg18 and 0.2.1-pg19.

The release 0.2.0 (2026-11-30, superseded by 0.2.1 and 0.2.2). kingres-0.2.0-pg18 (commit 3e5c5da47deb2ebd98323f23939ec615f1b3093d) and kingres-0.2.0-pg19 (commit fd07b560bfac3b7b608d2c5ed55bcee5bb314c0f), with the same kinds of file as 0.2.2 (kingres_0.2.0+pg<N>-1_amd64.deb, kingres-pg<N>-0.2.0-1.<dist>.x86_64.rpm, kingres-0.2.0-pg<N>-image.tar.gz, signed kingres-SHA256SUMS); its images are kingres/kingres:0.2.0-pg18 and 0.2.0-pg19.

The release 0.1.1 (2026-11-28, superseded by 0.2.0, 0.2.1 and 0.2.2). kingres-0.1.1-pg18 and kingres-0.1.1-pg19, with kingres-SHA256SUMS (signed) and no RPM; its images are kingres/kingres:0.1.1-pg18 and 0.1.1-pg19 (commits b70e7d0c90 and c796d5f43f).

The release 0.1.0 (superseded by 0.1.1, 0.2.0, 0.2.1 and 0.2.2). Each major has its own release on GitHub, made on 2026-11-28:

Major Release Files
PostgreSQL 18 kingres-0.1.0-pg18 (tag kingres-0.1.0-pg18 on kingres-18) kingres_0.1.0+pg18-1_amd64.deb, the image kingres:0.1.0-pg18 as a docker save archive, SHA256SUMS, the release notes, and the signed release of the verifier
PostgreSQL 19 kingres-0.1.0-pg19 (tag kingres-0.1.0-pg19 on kingres-19) kingres_0.1.0+pg19-1_amd64.deb, the image kingres:0.1.0-pg19 as a docker save archive, SHA256SUMS, the release notes

Download the files of one release into an empty directory, put the package and the image archive into a folder pg18/ (or pg19/) next to SHA256SUMS (it lists the files of both majors with that folder; GitHub shows them without folders), and check them before you install anything:

sha256sum -c --ignore-missing SHA256SUMS

Every line must read OK (--ignore-missing skips the files of the other major). Load the image with docker load -i <archive>. The packages and images are not signed and there is no apt repository; the SHA256SUMS of 0.1.0 is not signed either (0.1.1 and later releases sign it). Since 0.1.1 the checksums are signed: kingres-SHA256SUMS (the plain names of the files of both majors) and the signed note kingres-SHA256SUMS.note, checked with kingres-verify release verify --sums kingres-SHA256SUMS --note kingres-SHA256SUMS.note --key <release key> --binary <file>; the packages and images themselves stay unsigned. SHA256SUMS protects against a damaged download, not against a release page that someone else controls. The signed files are those of the verifier, which is attached to the release of kingres-0.1.0-pg18 as the binaries, RELEASE, kingres-verify-SHA256SUMS and kingres-verify-SHA256SUMS.note; check them as The Verifier describes, with kingres-verify release verify and the public release key.

Since 0.1.1 the files are checked the same way for the product: the sums of the packages and images are named kingres-SHA256SUMS, list the files without a folder (so sha256sum -c --ignore-missing kingres-SHA256SUMS works in the download directory), and come with kingres-SHA256SUMS.note, a note signed with the release key; kingres-verify release verify --sums kingres-SHA256SUMS --note kingres-SHA256SUMS.note --key <key> --binary <file> must print VERIFIED. scripts/release.sh now writes the verifier's sums under the names kingres-verify-SHA256SUMS and kingres-verify-SHA256SUMS.note itself.

Build the artifacts

Requirements: an unprivileged Linux user (Ubuntu 24.04), the packages of kingres/dev/setup-ubuntu.sh plus libsystemd-dev libxml2-dev liburing-dev libnuma-dev uuid-dev dpkg-dev file, and the pinned Go and Node.js versions:

kingres/packaging/build/toolchain.sh ~/toolchain
export PATH=~/toolchain/go/bin:~/toolchain/node/bin:$PATH

The release recipe builds from a commit or a product branch, with git archive, so uncommitted work is never built:

kingres/packaging/build/build.sh --rev kingres-18 --work ~/w18      # or --rev kingres-19

It builds the server, the panel (npm ci, npm run build), kingresd and kingres-verify (with CGO_ENABLED=0 go build -trimpath -buildmode=pie), checks that every contrib/kingres_* extension is in the staged tree, and checks the staged tree (no assertions, full RELRO and BIND_NOW, static kingresd).

Debian package

kingres/packaging/deb/build-deb.sh --work ~/w18 --lint
sudo apt install ./kingres_0.1.0+pg18-1_amd64.deb

The product is installed under /opt/kingres, the state is under /var/lib/kingres, the configuration under /etc/kingres (kingresd.json, and kingresd.env, readable by root only, for secrets).

Container image

On Docker Hub (https://hub.docker.com/r/kingres/kingres). The images of the releases are public as kingres/kingres:0.1.0-pg18, 0.1.0-pg19, 0.1.1-pg18, 0.1.1-pg19, 0.2.0-pg18, 0.2.0-pg19, 0.2.1-pg18, 0.2.1-pg19, 0.2.2-pg18, 0.2.2-pg19, and latest-pg18 and latest-pg19 (both point to 0.2.2). There is no tag without the major. Use 0.2.2: 0.1.0 has a known wrong answer of the pushdown of some outer joins, 0.2.0 has the faults that 0.2.1 fixes, and 0.2.1 fails over a vanished server slowly, which 0.2.2 fixes (Release Notes). Every release pushes its images there too. Pull and run (Linux shell; the Windows form is below):

docker pull kingres/kingres:0.2.2-pg18
docker run -d --name kingres --stop-timeout 120 \
  -p 127.0.0.1:8091:8091 -p 127.0.0.1:5432:5432 \
  -v kingres-data:/var/lib/kingres kingres/kingres:0.2.2-pg18
docker exec kingres cat /var/lib/kingres/setup-token

Each pushed image is the image of the release archive, and its label org.opencontainers.image.revision is the commit of the tag: docker inspect --format '{{index .Config.Labels "org.opencontainers.image.revision"}}' kingres/kingres:0.2.2-pg18 gives the commit of the tag kingres-0.2.2-pg18 (4c7f8dc9c82ad450038ebfd31a5c6ef6f1e68e78; pg19: 10ff44579a89a0bc01bd6137bac3db4761f3c2c1); for 0.2.1 it gives f709a17d5a8279f931bf15e6087dea213fc20658 (pg19: 7139e0939fc09eef6406a5dcea09a483841f6a07); for 0.2.0 it gives 3e5c5da47deb2ebd98323f23939ec615f1b3093d (pg19: fd07b560bfac3b7b608d2c5ed55bcee5bb314c0f); for 0.1.1 it gives b70e7d0c90ac8bb31585ac248a848b55a93ae4f2 (pg19: c796d5f43f1b6151e97fbcd4223fda8e7ef96b4f). That shows the source, not a signature; the images are not signed, and the bytes are checked with the archive on the release page and the signed kingres-SHA256SUMS. The archive and docker load remain the offline way. The commands below build or load a local image kingres:<version>-pgNN.

kingres/packaging/docker/build-image.sh --rev kingres-18        # kingres:0.1.0-pg18
docker run -d --name kingres --stop-timeout 120 \
  -p 127.0.0.1:8091:8091 -p 127.0.0.1:5432:5432 \
  -v kingres-data:/var/lib/kingres kingres:0.1.0-pg18
docker exec kingres cat /var/lib/kingres/setup-token

Since 0.2.1 the image build compiles with every CPU of the machine, and KINGRES_IMAGE_JOBS=8 kingres/packaging/docker/build-image.sh --rev kingres-18 holds it to 8 jobs (the build argument JOBS of the Dockerfile, like KINGRES_RPM_JOBS for the RPM build); the build of the bundled extensions in the same step does not take the value yet and still uses every CPU.

Since 0.2.1, build-image.sh and build-rpm.sh first fetch the source archives of the bundled extensions into a cache on the host (KINGRES_EXT_CACHE, default ~/.cache/kingres/ext-sources; KINGRES_EXT_FETCH_OFFLINE=1 or --offline of fetch-sources.sh uses the cache only; KINGRES_EXT_FETCH=0 gives the old behaviour, a download inside the build, and a release refuses it). The Docker build gets the checked archives through the build context and downloads none, so a dropped connection during the build can no longer fail it for that reason. Each archive is checked again inside the build. See Building from Source.

On Windows (Docker Desktop) the commands differ in three ways:

  • In Git Bash the path in docker exec kingres cat /var/lib/kingres/setup-token is rewritten into a Windows path and the command fails with cat: 'C:/Users/.../Git/var/lib/kingres/setup-token': No such file or directory. Use MSYS_NO_PATHCONV=1 docker exec kingres cat /var/lib/kingres/setup-token or docker exec kingres cat //var/lib/kingres/setup-token. PowerShell and CMD need no change.
  • In PowerShell or CMD, load the image with docker load -i kingres-0.2.2-pg18-image.tar.gz; no gunzip is needed.
  • The backslash line continuation is bash only. In PowerShell put docker run on one line, or end each line with a backtick; keep the ports on 127.0.0.1:
docker run -d --name kingres --stop-timeout 120 `
  -p 127.0.0.1:8091:8091 -p 127.0.0.1:5432:5432 `
  -v kingres-data:/var/lib/kingres kingres/kingres:0.2.2-pg18

Use a volume with one major only. The image is multi-stage, runs as a non-root user and starts kingresd as the entry point. No secret is baked in. It has no config file; its settings are environment variables. It runs as the non-root user kingres (uid and gid 10001). A plain docker run does not make the root file system read-only or drop capabilities; the compose file does, and the compose tests run it that way. To run it so with docker run, add --read-only --tmpfs /tmp --cap-drop ALL --security-opt no-new-privileges:true. Give docker stop time to shut the database down (--stop-timeout 120).

Security note: publish the ports on 127.0.0.1 or a private network only. Inside the container the HTTP port (8091) listens on 0.0.0.0 over plain HTTP and accepts setup from other machines (KINGRES_LISTEN=0.0.0.0:8091, KINGRES_ALLOW_REMOTE_SETUP=true); only the setup token guards it. The PostgreSQL port (5432) also listens on 0.0.0.0 inside the container (KINGRES_PG_LISTEN=0.0.0.0). docker run -p 8091:8091 on a network that is not trusted sends the setup token and the first administrator password in clear text. Publish both ports on 127.0.0.1 as above, or put TLS in front (KINGRES_TLS_CERT_FILE, KINGRES_TLS_KEY_FILE). By default the database accepts no network login: add rules on the network access page before other containers connect.

Development cluster

kingres/packaging/docker/compose.yaml and tokens.sh describe a three-node cluster of one image on one network. See the README for how the three nodes are made one cluster.

First run

The service starts at the end of the installation. The node is uninitialized and the panel listens on 127.0.0.1:8091 only.

sudo cat /var/lib/kingres/setup-token

Open http://127.0.0.1:8091/ on the server (from elsewhere, ssh -L 8091:127.0.0.1:8091 server), enter the token, choose "create cluster" and give a cluster name and an administrator account. kingresd creates the instance, the administrator role, the cluster certificate authority and the system database, and starts the instance. The same through the API: POST /api/v1/setup/init-cluster with the header X-Setup-Token, then poll GET /api/v1/setup/state. A second server joins with POST /api/v1/setup/join-cluster.

To reach the panel from other machines, set KINGRES_LISTEN and TLS (KINGRES_TLS_CERT_FILE, KINGRES_TLS_KEY_FILE) in /etc/kingres/kingresd.env; setup from other machines needs KINGRES_ALLOW_REMOTE_SETUP=true. See Configuration.

Connecting

kingres-psql -h 127.0.0.1 -p 5432 -U <administrator> postgres

Use TCP. Logins from other addresses need access rules, set in the panel's network access page. Logical backup: kingres-pg_dump -h 127.0.0.1 -U <admin> -Fc shop > shop.dump. The whole state of a node is /var/lib/kingres; a cold copy includes the certificate authority key and the service credentials, so treat it as a secret.

Installed layout

Path Content
/opt/kingres/{bin,lib,share} the product: server, clients, kingresd, kingres-verify, extensions, share/BUILD-INFO
/usr/bin/kingres-psql, kingres-pg_dump, kingres-pg_dumpall, kingres-pg_restore, kingres-pg_basebackup, kingres-pg_isready, kingres-pg_config, kingresd, kingres-verify symbolic links into /opt/kingres/bin. The server programs (postgres, initdb, pg_ctl) are not on the PATH
/usr/lib/systemd/system/kingres.service the one service of the node
/etc/kingres/kingresd.json settings (conffile): listen address, data directory, pg-bin-dir, socket-dir, pg-port, pg-listen, log settings
/etc/kingres/kingresd.env environment and secrets such as KINGRES_METRICS_TOKEN and the TLS file names (conffile, 0600, root)
/var/lib/kingres the node's state, created by postinst: node-state.json, setup-token (only while uninitialized), audit.jsonl, pki/ (the CA key ca.key and the certificates), service-credentials, ledger/keys (signing keys, on the servers that may sign), instances/1/pgdata (the database)
/var/lib/kingres/instances/1/pgdata/log/ PostgreSQL server log, rotated by weekday; the log of kingresd is in the journal (journalctl -u kingres)
/run/kingres/1 the Unix socket of the instance
/usr/share/doc/kingres/ copyright, the AGPL-3.0 text, changelog, dependency lists

Ports

Port Use Default
8091 REST API and console (listen) 127.0.0.1 only
8092 internal server-to-server API with mutual TLS (internal-listen), by convention the port above listen; needed to join, add or remove servers and for forwarding off until set
5432 the PostgreSQL instance (pg-port, pg-listen) 127.0.0.1; in a cluster pg-listen must include the address the other servers reach
ledger-publication-listen the published ledger, no authentication by design off
client-listen, client-standby-listen the client entry point off

Between the servers of a cluster open the internal API port and the PostgreSQL port. See Configuration and Cluster Setup.

RPM package (RHEL 9 and 10 families, Fedora; from 0.2.0)

0.1.0 and 0.1.1 have no RPM. Since 0.2.0 there is one RPM per PostgreSQL major and per system, for amd64. It is the Debian package in RPM form: the same layout under /opt/kingres, the same commands in /usr/bin (kingres-cli and its man page included), the service kingres.service, the settings in /etc/kingres and the state in /var/lib/kingres. Each file is built in Docker in a container of its own system from a clean snapshot of a commit (the base images are pinned by digest), so take the file whose dist tag is yours (cat /etc/os-release); the file of another system is neither built nor tested for yours:

Your system File (PostgreSQL 18; kingres-pg19-... for 19)
RHEL 9, AlmaLinux 9, Rocky Linux 9 kingres-pg18-<version>-<revision>.el9.x86_64.rpm
RHEL 10, AlmaLinux 10, Rocky Linux 10 kingres-pg18-<version>-<revision>.el10.x86_64.rpm
Fedora 44 kingres-pg18-<version>-<revision>.fc44.x86_64.rpm
Fedora 45 kingres-pg18-<version>-<revision>.fc45.x86_64.rpm

The builder packages are pinned (since 0.2.1; 0.2.0 does not have it). kingres/packaging/rpm/pins/<target>.txt lists the exact version of every package of the el9, el10, fc44 and fc45 builders. builder-packages.sh installs exactly those in one transaction, checks that the installed set equals the list, and fails before any compile when a pinned version has left the mirrors; build-rpm.sh refuses a target that has no pin file. Before the pins, the builder packages were the updates of the day the builder layer was made, so a builder rebuilt on another day could give an extension library other bytes. When a pinned AlmaLinux package has left the mirrors the build tries the AlmaLinux vault of the minor release recorded in the pin file; Fedora has no such fallback. See Release Process for the limits and for when the pins are renewed.

The packages are tested on AlmaLinux 9, AlmaLinux 10.3, Fedora 44 and Fedora 45. Rocky Linux and RHEL themselves were not run (AlmaLinux of the same major is binary compatible); Fedora 43 and earlier, RHEL 8 and CentOS Stream are not built. SELinux was analysed with sesearch against the policy of each system and no policy module is needed by that analysis; the service was not run with SELinux enforcing (the test kernel has none). A release does not drop a target silently: the release script reads the targets from packaging/rpm/targets.txt and refuses a release in which a target of the list is missing on either product branch.

sudo dnf install ./kingres-pg18-<version>-<revision>.el9.x86_64.rpm      # or .el10, .fc44, .fc45
  • One major per machine. The package name carries the major and the two conflict, so dnf refuses one over the other before it changes anything; the package also refuses a data directory of the other major that stays after a removal.
  • Upgrade: sudo dnf install ./kingres-pg18-<new>.rpm; after an upgrade of the operating system to the next release (for example Fedora 44 to 45), install the file of the new system. A settings file you changed is kept; a changed default is written next to it as *.rpmnew. An upgrade restarts a running service but does not start one that was stopped on purpose (the same holds for the Debian package since 0.1.1).
  • Remove: sudo dnf remove kingres-pg18 stops the node and removes the programs; data, user and group stay, and a settings file you changed stays as *.rpmsave. RPM has no purge: to delete everything, remove /var/lib/kingres, /etc/kingres and the user by hand, after a backup.
  • Firewall: the package opens no port; open 8091 (console), 8092 (server-to-server API) and 5432 (database) where other machines must reach them.
  • Checking: the RPM is listed in the signed kingres-SHA256SUMS (see "Download a release"). There is no RPM signature, no source RPM and no dnf repository. For one state of the builder the build is reproducible (check-reproducible.sh).

The details are in kingres/packaging/rpm/README.md and in the install guide, install.md.

Upgrade, remove, purge

  • Upgrade: apt install ./kingres_<new>.deb (since 0.1.1 an upgrade does not start a service that was stopped on purpose). Settings you changed are kept; the service restarts, which restarts the database; data in /var/lib/kingres is untouched. Update the extensions yourself (Upgrades). On a rolling upgrade of a cluster with standbys, upgrade the standbys first (a primary that begins to write columnar WAL under a new preload list would otherwise be ahead of a standby that cannot replay it).
  • Remove (apt remove kingres): the service and the database are stopped cleanly, the program files go; data, settings and the kingres user stay.
  • Purge (apt purge kingres): also deletes /var/lib/kingres (every database of this node, the certificates, the audit log), /etc/kingres, the user and the group. Take a backup first (Backup Restore and PITR).
  • The package of the other major is refused by preinst; the way to the other major is a purge (after a logical backup) or another machine.
  • The preload list: after an upgrade, kingresd rewrites the managed file of an old instance at its start, but the new list takes effect only at the restart of the instance. Check SHOW shared_preload_libraries before relying on columnar writes, and restart standbys of a group before its primary (Analytics Extensions).

The service and its restart modes

kingres.service runs as kingres:kingres (never root) with a hardened sandbox. The database is an independent process:

What Command Effect
Restart only the manager systemctl kill --kill-whom=main --signal=SIGTERM kingres kingresd restarts and adopts the running instance; connections stay open
Restart everything systemctl restart kingres the database is shut down fast, then everything starts again
Stop everything systemctl stop kingres the database is shut down

A package upgrade restarts everything. After an upgrade, update the extensions of existing databases yourself with ALTER EXTENSION ... UPDATE; nothing does it for you (Upgrades). For monitoring and runbooks see Operations.

Not included yet

No Patroni, no etcd and no metrics store (by decision); kingres-cli is part of release 0.2.0 (2026-11-30) and later (Command Line Client), not in 0.1.0 or 0.1.1; no RPM in 0.1.0 and 0.1.1 (RPMs for el9, el10, Fedora 44 and 45 from 0.2.0, see above), no arm64 or Windows; no signature on the packages themselves (RPM signature, SRPM) and no apt or dnf repository; no SBOM; no -dbgsym or kingres-dev package; no major-version upgrade path and no rollback; no automated backup and no point-in-time-recovery configuration. The compose test does not exercise removing a server, failover, switchover or rebalance (the cluster tests of the control plane do; see High Availability). The README of the packaging lists the rest.

Sources

Clone this wiki locally