4 ms·
Is there a reason why this is implemented in Rust instead of plpgsql? At first glance I didn't see it using any features that would need a loadable extension. P
by ants_a 3y ago
Is there a reason why this is implemented in Rust instead of plpgsql? At first glance I didn't see it using any features that would need a loadable extension. Plain SQL based solution would make using it on managed database services much easier.
- chuckhend 3y agoIt probably could be implemented as pure plpgsql for some of its features (basic send/receive). The long-term plan is to add additional message type support (protobuf, msgpack, etc), embed a metrics exporter (prometheus?), push notifications, and. for those we want to pull in Rust modules from open source. I bet the project could be refactored to expose the parts you're looking for as plpgsql though. Distribution of Postgres extensions is a challenging problem that we're working on over in https://github.com/tembo-io/trunk https://github.com/tembo-io/trunk // https://pgt.dev/ https://pgt.dev/. One of the goals there is to make it easier to install extensions.