Repository navigation
Contributing
The full rules are in CONTRIBUTING.md in the repository. This page is a summary for the wiki.
Open an issue on https://github.com/KingresDB/Kingres/issues. Say the branch or commit and the PostgreSQL major (18 or 19), what you did (with the smallest SQL, request or steps that show it), what you expected and what happened (with the exact error text), and include the output of select version() and how KingresDB was installed. Search the existing issues and the status text of kingres/README.md first: some defects are already known. Security problems are not issues: report them privately (see Security Model and SECURITY.md).
- Open an issue first for anything larger than a small fix, so the design can be agreed. Decisions that change the design are recorded as ADRs in
kingres/docs/adr(Architecture Decisions). - Branch from
kingres-18, the default branch.kingres-19is not edited by hand; its KingresDB directories are synchronised fromkingres-18(releases.md). - Make the change together with its tests and documentation (below).
- Open a pull request that says what changed, why, and how you checked it.
- The maintainers check pull requests locally. The project does not use GitHub Actions, so a pull request has no automatic checks: run the checks below yourself and say what you ran.
- English only, in code, comments, commit messages and documents. Plain prose without marketing language.
-
Licence. KingresDB's own code is AGPL-3.0-only. Every new file of your own carries two header lines, in the comment syntax of its language:
SPDX-License-Identifier: AGPL-3.0-onlyandCopyright (c) 2026, RooyeKhat Media Co(use the header the neighbouring files use; see Coding Standards). Files from PostgreSQL keep their licence and are changed as little as possible; every change to an upstream file needs a row in the core patches register. Contributions are accepted under the project's licence (inbound equals outbound); there is no contributor licence agreement. - One source for PostgreSQL 18 and 19. Every extension is one source that builds and passes its tests on both majors; version differences live only in the compatibility header (ADR 0023).
- Every change has tests. A bug fix starts with a test that fails without the fix. See Development and Testing and Testing Strategy.
- Do not claim more than is verified. Documentation states what is built, what is reviewed and what is open. Do not describe a feature as finished until its tests pass.
- The name is KingresDB, short name
kingres. - No secrets and no personal data in files, tests or commit messages.
kingres/dev/ext-majors.sh <extension> # extensions, both majors
cd kingres/control-plane && go vet ./... && go test ./...
cd kingres/web && npm run typecheck && npm run lint && npm test
cd kingres/verifier && go test ./...
cd kingres/api && npm run check
A change to an endpoint changes kingres/api/openapi.yaml first. The tests of the artifacts are in kingres/packaging/test.
Details are in Building from Source and Development and Testing. The standards are summarised on Coding Standards, the branches on Branching and Synchronisation, where files go on Repository Layout, and how changes are reviewed on Review Process.
See CODE_OF_CONDUCT.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