TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Write Postgres Foreign Data Wrappers in WASM

3 点作者 kiwicopple9 个月前

1 comment

kiwicopple9 个月前
This is a framework&#x2F;guide for creating Postgres FDW&#x27;s in WASM. This makes it easy for anyone to create a Foreign Data Wrapper and share it with the community. We have released 2 examples: one for Snowflake[0] and one for Paddle[1]<p>Usually FDWs need to be &quot;pre-installed&quot; on Postgres which makes it harder for Postgres platforms to support a wide variety of FDWs. With WebAssembly, the FDW&#x27;s can safely be installed from S3 or GitHub.<p>There are some trade-offs: the performance isn&#x27;t as good as a &quot;native&quot; FDW. That said, we think the flexibility makes it worthwhile, and we&#x27;ll improve the performance over time.<p><i>Background: what is a FDW?</i> Foreign Data Wrappers are a core feature of Postgres that allow you to access and query data stored in external data sources as if they were native Postgres tables. For example, the Stripe FDW allows you to query all your customers from Stripe inside your postgres database:<p><pre><code> select customer_id, name from stripe.customers; </code></pre> [0] snowflake: <a href="https:&#x2F;&#x2F;fdw.dev&#x2F;catalog&#x2F;snowflake&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fdw.dev&#x2F;catalog&#x2F;snowflake&#x2F;</a><p>[1] paddle: <a href="https:&#x2F;&#x2F;fdw.dev&#x2F;catalog&#x2F;paddle&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fdw.dev&#x2F;catalog&#x2F;paddle&#x2F;</a>