Skip to content

Contributing

Mohammad Rasoul Kazemi edited this page Nov 26, 2026 · 3 revisions

Contributing

The full rules are in CONTRIBUTING.md in the repository. This page is a summary for the wiki.

Report an issue

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).

Propose a change

  1. 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).
  2. Branch from kingres-18, the default branch. kingres-19 is not edited by hand; its KingresDB directories are synchronised from kingres-18 (releases.md).
  3. Make the change together with its tests and documentation (below).
  4. Open a pull request that says what changed, why, and how you checked it.
  5. 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.

Rules

  • 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-only and Copyright (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.

Run the checks before you open a pull request

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.

Code of conduct

See CODE_OF_CONDUCT.md.

Sources

Clone this wiki locally