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.

Writing a Postgres Foreign Data Wrapper for Clickhouse in Go

114 pointsby arunk-sover 4 years ago

5 comments

tristorover 4 years ago
I wonder if you&#x27;ve benchmarked your Go implementation against the Percona Lab&#x27;s FDW for Clickhouse? <a href="https:&#x2F;&#x2F;github.com&#x2F;Percona-Lab&#x2F;clickhousedb_fdw" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Percona-Lab&#x2F;clickhousedb_fdw</a>
评论 #25157642 未加载
评论 #25157637 未加载
stareatgoatsover 4 years ago
I sometimes fondly remember my time as an office hero, using MSAccess to attach to just about any data source imaginable, copy to a temptable and run whatever cleaning was required before loading into the server database.<p>Good times; almost 25 years ago now. Sometimes I wonder if we&#x27;re stuck.
评论 #25157611 未加载
gschoover 4 years ago
This is really cool. I had not heard of Foreign Data Wrappers for Postgres before! Are these used in production commonly or more of a toy thing?
评论 #25154989 未加载
评论 #25155676 未加载
评论 #25154424 未加载
评论 #25154426 未加载
评论 #25154468 未加载
评论 #25154608 未加载
评论 #25160080 未加载
评论 #25157425 未加载
_ph_over 4 years ago
I have done something similar. For a software, which take shared libraries - usually written in C - as plugins, I wrote such a plugin in Go. This was a very good experience. It took only little work to set up the C compatible Go functions realizing the API, but the rest I could implement in Go which made the life so nice. I also ended up calling back into some of the applications APIs from Go, that worked seamlessly.<p>Go has good facilities interfacing with C, the only attention you need to pay is properly handling C pointers (manual memory management) vs. Go pointers (automatically managed via the GC). But with very little care this is not a big issue. The Go part of the code is however much nicer than if you had to implement the functionality in C. (Yes, I do think that Go is a great C replacement)
评论 #25155548 未加载
daniellarussoover 4 years ago
So, naive question, and I know the concept of a ‘database’ is a bit different between MySQL and Postgres, does Postgres require a FDW to communicate between multiple databases on the same server?
评论 #25157680 未加载