delete_inactive_queues
SQL 0.1.1 · Source cbff27b8a34e1384384018680e46c20d5c610cc9.
Signature
postgremq.delete_inactive_queues()
RETURNS void
The signature, defaults, and result above were extracted from the installed PostgreSQL catalog.
Reap expired Exclusive subscriptions
Deletes expired Exclusive queues without DLQ entries and cascades their delivery rows. This is the queue-reaping part of fast maintenance without final-attempt retirement. It cannot make an expired queue usable before deletion.
Transactions and errors
Transactional and unbatched; can wait for locks. DLQ references are deliberately preserved by skipping those queues. Prefer the combined fast maintenance job for normal operations.
All calls require the applicable caller privileges. See SQL errors for driver failures and uncertain outcomes.
Example
SELECT postgremq.delete_inactive_queues();
Expired queues with DLQ entries remain; Durable queues are not selected.
Related: Maintenance, SQL conventions.