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.

A list of PostgreSQL libraries, tools and resources

184 pointsby lauriswtfover 9 years ago

8 comments

Cieplakover 9 years ago
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 未加载
pilifover 9 years ago
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 未加载
rMBPover 9 years ago
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>
jbranchaudover 9 years ago
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 未加载
davidwover 9 years ago
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 未加载
hvoover 9 years ago
Good work. I am a big fan of PostgreSQL. It has made life easier for me.
ForHackernewsover 9 years ago
Amazon RDS doesn&#x27;t make the list of &quot;hosted Postgres&quot;?
copperxover 9 years ago
Is there a PostgreSQL that anyone here can recommend?
评论 #11108570 未加载
评论 #11105734 未加载