mbus
simple message bus for pg
mbus · simple message bus for pg
Overview
| Relationships | |
|---|---|
| Requires | hstore |
Usage
Sources:
- Official upstream README
- Official extension control file (mbus.control)
- Official extension SQL (mbus–1.1.sql)
mbus — simple message bus for pg. Use it when an application needs this specific database capability. Its extension dependencies must be installed and validated first.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
can_post(qname text)is an extension function and returnsboolean.clear_tempq()is an extension function and returnsvoid.consumeis an extension function.consume_temp(tqname text)is an extension function and returnsSETOF.create_consumeris an extension function.create_run_function(qname text)is an extension function and returnsvoid.create_temporary_consumeris an extension function.create_temporary_queue()is an extension function and returnstext.create_triggeris an extension function.create_view(qname text, cname text default 'default', sname text default 'public', viewname text default null)is an extension function and returnsvoid.create_view_prop(qname text, cname text, sname text, viewname text, with_delay boolean default false, with_expire boolean default false)is an extension function and returnsvoid.drop_consumer(cname text, qname text)is an extension function and returnsvoid.drop_queue(qname text)is an extension function and returnsvoid.drop_trigger(src text, dst text)is an extension function and returnsvoid.
Requirements and Caveats
- The reviewed control file declares default version
1.1. - Install the confirmed extension dependencies first:
hstore. - The control file marks the extension as non-relocatable.
- The control file requires a superuser for installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.