PgQue docs
Documentation for PgQue, the zero-bloat Postgres queue: a hands-on tutorial, operations guides, a function reference, and the concepts behind the design, plus a contributor primer.
Build contract. The documentation on the
mainbranch and pgque.dev describes the in-development SQL indevel/sql/. For the latest stable build, open the latest stable release and use its tagged README andsql/pgque.sql. A release promotion copies the tested artifacts intosql/, switches documentation install and source paths fromdevel/sql/tosql/(with source links pinned to the release tag), and removes this development-build notice before tagging.
Get started
- Tutorial — a hands-on walkthrough. Send, tick, receive, retry, DLQ, observability. Start here if you are new.
Guides
- Installation and operations — install, ticking, role grants, uninstall, and troubleshooting.
- Producer idempotency — queue-scoped keys, TTL windows, retry behavior, and maintenance.
- Partition keys — atomic slot setup, worker leases, ordered routing, poolers, operational limits, and recovery.
- Examples — short patterns: fan-out, exactly-once, idempotent sends, partition workers, batch send, recurring jobs, DLQ inspection, and cooperative consumers / subconsumers (experimental).
- Bounded batch processing — durable page checkpoints, leases, cooperative takeover, and partition fencing. Development installer only.
- Monitoring and health — queue, consumer, and batch introspection; lag and pending-event signals; what to alert on.
Reference
- Function reference — the public SQL surface, return types, behavior, and role grants in the development install.
Explanation
- Latency and tick tuning — how ticks shape
end-to-end delivery latency, choosing
tick_period_ms, and idle backoff. - Concepts and heritage — the core vocabulary (event, batch, tick, rotation, ticker rule) and where PgQue comes from.
For the full specification and implementation plan, see
blueprints/SPECx.md.
For what ships in the default install versus what is experimental, see
blueprints/PHASES.md.