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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

PostgreSQL Foreign Data Wrappers

48 点作者 onderkalaci超过 9 年前

4 条评论

mason55超过 9 年前
Just be careful with FDWs. They run outside of many of the normal checks within the PG server and so a badly written FDW can actually cause the whole server to crash. We&#x27;ve experienced a number of issues with the MongoDB FDW from Citus where we do benign things like comparing an integer to a string and the entire Postgres server goes down. Another issues we&#x27;ve run into is that the query planning cache seems to get confused by FDWs, and if we try to query an FDW from within a stored procedure it just never returns or it crashes the DB. Instead we have to construct the query with dynamic SQL inside the stored proc which is both a pain in the ass and way increases the chances for bugs.<p>We&#x27;re still on 9.1 so maybe some of this has been fixed by now but people seem to push FDWs as this panacea where you get all the guarantees &amp; safety of running within Postgres and that&#x27;s just not the case.
评论 #10319670 未加载
simonpantzare超过 9 年前
<a href="http:&#x2F;&#x2F;multicorn.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;multicorn.org&#x2F;</a> is a PostgreSQL extension meant to make FDW development easier. It lets you write them in Python.
danr4超过 9 年前
Unrelated but important: I wish sites realized that blocking Adobe Typekit (and it&#x27;s tracking) totally breaks their site. In this particular one I don&#x27;t see any text. Why the hell is there no fallback for crappy fonts or whatever?
评论 #10318538 未加载
brightball超过 9 年前
Heroku&#x27;s implemented a streamlined version that they support called Data Links. <a href="https:&#x2F;&#x2F;blog.codeship.com&#x2F;heroku-data-links-postgres-redis&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.codeship.com&#x2F;heroku-data-links-postgres-redis&#x2F;</a>