Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.78 KB

CONTRIBUTING.md

File metadata and controls

45 lines (30 loc) · 1.78 KB

Contributing to PgQue

Thanks for helping improve PgQue.

PgQue is a pure SQL / PL/pgSQL repackaging of PgQ for managed Postgres environments. Keep changes small, testable, and compatible with managed Postgres unless a document explicitly says otherwise.

Start here

  • Read README.md for project positioning and user-facing behavior.
  • Read blueprints/SPECx.md for the current specification and implementation plan.
  • Read CLAUDE.md. It is the source of truth for agentic engineering rules, style, design constraints, and project conventions.

Development rules

Use CLAUDE.md for the detailed rules. In short:

  • Use red/green TDD for new code: failing test first, implementation second.
  • Keep PRs focused: one logical change per PR.
  • Preserve PgQ core behavior unless the change is intentional, documented, and tested.
  • Keep the default install managed-Postgres-compatible.
  • Keep generated files and source changes consistent when both are affected.

Tests

Run the relevant SQL regression tests before opening a PR. For changes touching supported-version behavior, test against the supported Postgres matrix (PostgreSQL 14–19) when possible.

psql -X -v ON_ERROR_STOP=1 -f devel/sql/pgque.sql -f tests/run_all.sql
psql -X -v ON_ERROR_STOP=1 -f tests/acceptance/run_acceptance.sql

In a pg_cron-enabled database, also verify real scheduled delivery without manual ticker() calls:

psql -X -v ON_ERROR_STOP=1 -f tests/test_pgcron_delivery.sql

At minimum, include the test or manual verification command in the PR description.

Pull requests

  • Use a descriptive branch name.
  • Explain the motivation and the user-visible change.
  • Link related issues or design docs.
  • Keep PRs focused and easy to review.