Re:Writing a Postgres Foreign Data Wrapper for Clickhouse in Go
by gscho on Thursday November 19, 2020 @06:19PM
(#25155548)
I only just discovered foreign data wrappers today but it seems like you can write these in python though right? Might be easier than using Go to interface with C.
Re:Writing a Postgres Foreign Data Wrapper for Clickhouse in Go
by tankenmate on Thursday November 19, 2020 @07:14PM
(#25155994)
Messagebird uses Go on the backend; I suspect that's why they wrote the FDW in Go.
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)