Queue management functions create, remove, and configure PgQue queues. All require theDocumentation 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_admin role.
create_queue
1 if created, 0 if a queue with that name already exists (idempotent).
Queue names are limited to 57 bytes (UTF-8). The pgque_<name> LISTEN/NOTIFY channel must fit within PostgreSQL’s 63-byte identifier limit.
drop_queue
force => true to unregister all attached consumers first.
set_queue_config
param argument uses the short name (without the queue_ prefix) — set_queue_config prepends it internally.
NULL as value resets the column to its schema default.
Configurable parameters
| Param (short name) | Type | Description | Default |
|---|---|---|---|
ticker_max_count | integer | Force a tick after this many events | 500 |
ticker_max_lag | interval | Force a tick after this wall time since the last tick | 3 seconds |
ticker_idle_period | interval | Tick interval when the queue is idle | 1 minute |
ticker_paused | boolean | Pause ticking for this queue | false |
rotation_period | interval | How often the hot event table rotates | 2 hours |
external_ticker | boolean | Ticks are pushed from an external clock source | false |
max_retries | integer | Max nack retries before routing to the DLQ | 3 |
max_retries >= 0; ticker counts, lags, idle periods, and rotation periods must be positive.
