PgQue is SQL-first: any Postgres driver can callDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/NikolayS/PgQue/llms.txt
Use this file to discover all available pages before exploring further.
pgque.* functions directly. The three first-party client libraries are thin, idiomatic wrappers over those SQL primitives — they do not add a network layer or a separate daemon. All three are published at v0.2.0-rc.1 and expose the same core operations: send, receive, ack, nack, force_next_tick, and a high-level Consumer that manages the poll loop for you.
Capability parity matrix
| Capability | Python | Go | TypeScript |
|---|---|---|---|
connect / close | ✓ | ✓ | ✓ |
| Raw SQL escape hatch | ✓ (conn) | ✓ (Pool()) | ✓ (rawPool) |
| PgQue-classified errors | ✓ | ✓ | ✓ |
Lossless PostgreSQL bigint IDs | ✓ (int) | ✓ (int64) | ✓ (bigint) |
send | ✓ | ✓ | ✓ |
send_batch / SendBatch / sendBatch | ✓ | ✓ | ✓ |
receive | ✓ | ✓ | ✓ |
ack returns SQL rowcount (0 stale, 1 success) | ✓ (int) | ✓ (int64) | ✓ (number) |
nack | ✓ | ✓ | ✓ |
force_next_tick / ForceNextTick / forceNextTick | ✓ | ✓ | ✓ |
nack retry delay + reason options | ✓ | ✓ | ✓ |
High-level Consumer | ✓ | ✓ | ✓ |
| Consumer wakeup model | polling + optional LISTEN/NOTIFY wakeup | polling | polling |
Consumer poll interval option | ✓ | ✓ | ✓ |
Consumer max-messages option | ✓ | ✓ | ✓ |
Consumer retry delay option | ✓ | ✗ | ✗ |
| Unknown-type behavior avoids silent ack | ✗ | ✓ | ✓ |
| Configurable unknown-type policy | ✗ | ✗ | ✗ |
subscribe / unsubscribe wrappers | ✗ | ✗ | ✓ |
| Cooperative consumers (experimental) | ✓ | ✓ | ✓ |
ticker; Python and Go can call it via raw SQL.
Apps that both produce and consume must be granted both
pgque_reader and pgque_writer — they are siblings, not parent/child roles.Choose a client
Python
pgque-py — psycopg 3. Synchronous polling consumer with optional LISTEN/NOTIFY wakeup.Go
pgque-go — pgx/v5 + pgxpool. Transparent autocommit; idiomatic typed errors.TypeScript
pgque — node-postgres (pg). Lossless bigint IDs; AbortSignal-driven consumer.