TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PostgreSQL Foreign Data Wrappers

48 pointsby onderkalaciover 9 years ago

4 comments

mason55over 9 years ago
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 未加载
simonpantzareover 9 years ago
<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.
danr4over 9 years ago
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 未加载
brightballover 9 years ago
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>