pg_mqtt_pub
MQTT publishing from SQL, triggers, and scheduled jobs through a background worker.
pg_mqtt_pub · MQTT publishing from SQL, triggers, and scheduled jobs through a background worker.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101919 | pg_mqtt_pub | pg_mqtt_pub | 1.0 | FEAT | MIT | C |
Usage
Sources:
pg_mqtt_pub MQTT publishing from SQL, triggers, and scheduled jobs through a background worker.
Enablement
Merge pg_mqtt_pub into the existing preload list, restart PostgreSQL, and then create pg_mqtt_pub in each database that needs its SQL objects:
Core Workflow
The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.
Main Objects
The reviewed install surface includes these prominent objects:
| Object | Kind | Operational role |
|---|---|---|
mqtt_publish | FUNCTION | Callable function from the reviewed install surface. |
mqtt_pub.dead_letters | TABLE | Extension-owned table; account for its data in backup and upgrades. |
mqtt_status | FUNCTION | Callable function from the reviewed install surface. |
mqtt_pub.dead_letter_summary | VIEW | Inspection or query view created by the extension. |
Operations and Boundaries
- Preloading
pg_mqtt_pubchanges cluster startup state; stage configuration and restart changes separately fromCREATE EXTENSION. - The extension fixes or creates schema objects under
mqtt_pub; include them in privilege and backup review.