News for hackers. Stuff that matters.
Re:The challenges of supporting foreign key constraints by financltravsty on Tuesday December 05, 2023 @06:39PM (#38538494)
What I did in my case was setup stream replication to send over the Postgres WAL to another service that would update a ClickHouse cluster. Essentially, every time the WAL file is closed, a batch of all the SQL commands that were committed are sent over the wire.

It might be easier to find some "change data capture" product that will do that for you though (like Airbyte). I can't give any recommendations here, however.

Re:The challenges of supporting foreign key constraints by tw1ser on Tuesday December 05, 2023 @11:18PM (#38540429)
I can recommend a fellow Y member PeerDB [0] for this but I don't know if they support ClickHouse as a destination

[0] - https://www.peerdb.io/