Skip to main content

PostgreMQ documentation

PostgreMQ stores messages and delivery state in PostgreSQL. Applications publish to topics and consume from named queues using Go, Rust, TypeScript, or SQL.

Try PostgreMQ​

The Quick start installs a local database, creates a subscription, and verifies publication and acknowledgement. Read What is PostgreMQ for deployment choices and boundaries, or Messaging concepts for the relationship between topics, queues, and consumers.

Build an application​

Start with Connecting, Publishing messages, and Consuming messages. The consumer guide demonstrates both handler and stream APIs before explaining configuration.

Choose Durable queues for a named backlog that survives disconnects, or Exclusive queues for a subscription that expires after its application stops maintaining it. Either can use FIFO ordering. Separate queues provide independent subscriptions; consumers sharing a queue share its work.

For reliable processing, read Delivery guarantees, Consumer acknowledgements, and Retries. Transactional outbox commits application writes and publication together. Idempotent consumers covers transactional acknowledgement and duplicate effects. Delayed messages explains scheduling and its ordering consequences.

Operate PostgreMQ​

Begin with Planning a deployment, then Installation, Roles and permissions, and Maintenance. Installation alone does not schedule maintenance.

Use Monitoring to observe queue progress and Performance and capacity to size the database and workers. Prepare Backup and recovery and Availability and failover before an incident. Upgrading explains schema and client rollout.

For an active problem, start with the matching symptom: no delivery, repeated delivery or lost leases, a disappearing queue or stopped consumer, or failed maintenance or migrations.

Look up an API​

The Reference links SQL functions, TypeScript APIs, Go and Rust package documentation, CLI commands, defaults, and metrics.

Guides describe current behavior. References follow the SQL or SDK component's own version; there is no site-wide software version. Check Compatibility when combining releases and Releases when selecting an upgrade.