7 ms·
This is really cool! The only other similar thing I know of is WASMer's extension (which only supports Rust atm I believe): https://github.com/wasmerio/postgre
by gavinray 6y ago
This is really cool! The only other similar thing I know of is WASMer's extension (which only supports Rust atm I believe):
https://github.com/wasmerio/postgres-ext-wasm https://github.com/wasmerio/postgres-ext-wasm
One question though: If you built and compiled an extension with this, how would you deploy it on top of a Postgres Docker image?
I see instructions for installing and testing locally, via the cargo command, but couldn't find anything on this.
Does it spit out a static asset that you put in the project folder, and copy over during the build pipeline? Something like:
FROM postgres:12-alpine
COPY ./my-rust-extension /some/container/directory
RUN install-command-here
- zombodb 6y agoThat's a great question, and one probably best answered over on pgx's GitHub page. But! I plan on adding a command to "cargo-pgx" to package up the extension for you into a directory structure (or tarball, maybe). The idea is that you'd just run: cargo pgx package And it would just build a --release library, and create the proper directory structure (based on what pg_config) says for the shared library and the associated .sql. I actually need this ASAP for supporting ZomboDB proper, so... Coming Soon!