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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A list of PostgreSQL libraries, tools and resources

184 点作者 lauriswtf超过 9 年前

8 条评论

Cieplak超过 9 年前
What is the best way to ETL data from one Postgres cluster to another (by ETL I mean things like data sanitization and denormalization)?<p>a) I think most people end up doing some kind of batch synchronization, but I&#x27;m interested in streaming solutions.<p>b) A lot of folks use trigger based replication, but triggers have to be on the primary&#x2F;master node, and not just on the replicas.<p>c) Another common solution is to force the database client to write to a message broker, but that opens the door to data discrepancies and synchronization issues.<p>d) In theory I think the best way is to do something like bottledwater-pg or pg_kafka [1] [2] [3], but I&#x27;m not sure how battle hardened these are. I think logical replication of the WAL is the right approach, but there is still not much tooling around this.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;confluentinc&#x2F;bottledwater-pg" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;confluentinc&#x2F;bottledwater-pg</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;xstevens&#x2F;pg_kafka" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;xstevens&#x2F;pg_kafka</a><p>[3] <a href="https:&#x2F;&#x2F;github.com&#x2F;xstevens&#x2F;decoderbufs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;xstevens&#x2F;decoderbufs</a><p>PS: There are a bunch of interesting MySQL solutions out there, such as Zendesk&#x27;s Maxwell:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;zendesk&#x2F;maxwell" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zendesk&#x2F;maxwell</a>
评论 #11105663 未加载
评论 #11106552 未加载
评论 #11105257 未加载
pilif超过 9 年前
With regards to psql2csv: The default psql can already do this very nicely. Just use \copy.<p>\copy (select whatever from whatever) to &#x27;yourlocalfile.csv&#x27; with (format &#x27;csv&#x27;)<p>and if you want column headers, add a &quot;header true&quot; inside of the with clause.<p>Generally, \copy works just like COPY[1] but it does so from the remote server to the local machine, whereas file names given to COPY are relative to the server.<p>Yes. A dedicated tool might feel easier initially, but once you know how \copy works, you can always get a CSV file from whatever database you&#x27;re connected to and no matter what machine you&#x27;re on.<p>[1]: <a href="http:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;current&#x2F;static&#x2F;sql-copy.html" rel="nofollow">http:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;current&#x2F;static&#x2F;sql-copy.html</a>
评论 #11106331 未加载
rMBP超过 9 年前
I found this talk by Christophe Pettus [1] very informative. The title is somewhat misleading as most of the talk has little to do with Python, but it&#x27;s a good introduction to more advanced Postgres concepts. Also available in PDF form [2].<p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=0uCxLCmzaG4" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=0uCxLCmzaG4</a><p>[2] <a href="http:&#x2F;&#x2F;thebuild.com&#x2F;presentations&#x2F;pycon-2014-pppp.pdf" rel="nofollow">http:&#x2F;&#x2F;thebuild.com&#x2F;presentations&#x2F;pycon-2014-pppp.pdf</a>
jbranchaud超过 9 年前
Does anyone know of sample PostgreSQL databases? Something akin to Northwind (<a href="https:&#x2F;&#x2F;northwinddatabase.codeplex.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;northwinddatabase.codeplex.com&#x2F;</a>)?
评论 #11107420 未加载
评论 #11105893 未加载
评论 #11105991 未加载
评论 #11106877 未加载
davidw超过 9 年前
Can&#x27;t it just be a &#x27;list&#x27; of Postgres stuff? Do we really expect that it&#x27;s generated by an algorithm if someone doesn&#x27;t write &#x27;curated&#x27;? If it&#x27;s a good list, I&#x27;m going to find it interesting no matter how it was created.
评论 #11104972 未加载
评论 #11108044 未加载
hvo超过 9 年前
Good work. I am a big fan of PostgreSQL. It has made life easier for me.
ForHackernews超过 9 年前
Amazon RDS doesn&#x27;t make the list of &quot;hosted Postgres&quot;?
copperx超过 9 年前
Is there a PostgreSQL that anyone here can recommend?
评论 #11108570 未加载
评论 #11105734 未加载