4 ms·
Hey HN, Supabase CEO here. This release makes it easy for anyone to create a Foreign Data Wrapper and share it with the community. Usually FDWs need to be "pre
by kiwicopple 2y ago
Hey HN, Supabase CEO here.
This release makes it easy for anyone to create a Foreign Data Wrapper and share it with the community. Usually FDWs need to be "pre-installed" on Postgres which makes it harder for platforms like Supabase/RDS/Azure/etc
Since the FDWs are written in WebAssembly, they can safely be installed from S3 or GitHub and they are sandboxed by our Wrappers framework, a Rust framework for developing Foreign Data Wrappers (https://fdw.dev https://fdw.dev)
There are some trade-offs: the performance isn't as good as a "native" FDW. That said, we think the flexibility makes it worthwhile, and we'll improve the performance over time.
The blog posts explains a lot of the technical details. You can find some docs to build your own Wasm Wrapper here:
https://fdw.dev/guides/create-wasm-wrapper/ https://fdw.dev/guides/create-wasm-wrapper/