# pgmq/pgmq

A lightweight message queue. Like AWS SQS and RSMQ but on Postgres.

Repository: https://github.com/pgmq/pgmq
Canonical: https://ross.abutalabs.com/products/pgmq
Homepage: https://pgmq.github.io/pgmq/
Language: Rust
License: PostgreSQL
License Family: other
Topics: message-queue
Last push: 2026-08-21T14:27:02+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 81, longevity 81
- inputs: {"age_days": 1136, "days_push": 12, "days_rel": 50, "gap_med": 44, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5112, forks 141 (observed 2026-08-28T04:09:09.907353+00:00)

## What it is
pgmq is a lightweight message queue built on PostgreSQL, providing SQS/RSMQ-like semantics via a Postgres extension and a Rust client crate. It lets applications use their existing Postgres database for durable, transactional message queuing.

## Use cases
- add a message queue to an app without new infrastructure
- replace AWS SQS with a self-hosted Postgres-backed queue
- enqueue background jobs from Rust using Postgres
- implement reliable task queues with transactional guarantees
- run delayed message processing on Postgres

## When to choose
- you already run Postgres and want queuing without extra services
- you need transactional consistency between queue and database data
- you want a simple, lightweight SQS alternative you can self-host

## When to avoid
- you need very high throughput beyond what Postgres can handle
- you require multi-cloud managed queuing with built-in fanout
- your workload needs Kafka-style streaming or log semantics

## Facets
- artifact type: library
- maturity: active
- function: message-queue, database
- domain: databases, backend
- platform: rust, self-hosted
- tags: postgres-extension, sqs-alternative, rsmq, queuing, messaging, postgres

## Member repositories
- pgmq/pgmq (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:09.907353+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:02:08.872258+00:00, confidence not recorded.
  - readme: https://github.com/pgmq/pgmq (fetched 2026-08-28T04:09:09.907353+00:00, sha 6005cc661725)
  - homepage: https://pgmq.github.io/pgmq/ (fetched 2026-08-29T08:56:53.414139+00:00, sha 36c6c3c2e4f9)
  - registry_crates: https://crates.io/api/v1/crates/pgmq (fetched 2026-08-29T08:56:53.423391+00:00, sha 7d8c189afb48)
- Data as of 2026-08-30T08:39:29.467469+00:00.
