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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: HTTP extension for Postgres

2 点作者 truth_seeker将近 7 年前
Are there any HTTP or Web Socket extension for Postgres. The intent is to use PG as Web Application Server + DB.<p>If it is not already there how can I create extension using any C server libraries ? Is it possible ?

2 条评论

detaro将近 7 年前
I don&#x27;t think it exists as an extension (and neither I&#x27;m sure that&#x27;s a good idea), but there&#x27;s projects for providing HTTP APIs to Postgres:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;PostgREST&#x2F;postgrest" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PostgREST&#x2F;postgrest</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;prest&#x2F;prest" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;prest&#x2F;prest</a>
tango12将近 7 年前
I’m not sure about a Postgres extension. It might be a problem for a Postgres server to handle a large number of http connections in fact, so I’m not sure.<p>We’ve built <a href="https:&#x2F;&#x2F;hasura.io" rel="nofollow">https:&#x2F;&#x2F;hasura.io</a> which is an open source web service on top of Postgres. It uses GraphQL on the HTTP API.<p>Postgrest is a similar solution with rest APIs.