WalShadow: Sub-second Postgres replication to ClickHouse from physical WAL
Thread
Loading the complete thread in the background. This saved snapshot is available now. Refresh
Unofficial Hacker News client; not affiliated with Y Combinator.
WalShadow: Sub-second Postgres replication to ClickHouse from physical WAL
Loading the complete thread in the background. This saved snapshot is available now. Refresh
Unofficial Hacker News client; not affiliated with Y Combinator.
vmsp · · focus · HN ↗
This is very interesting. I'd never have guessed that it'd make such a difference. I also bet this is the sort of thing that would have never end up being implemented without access to coding agents. Having to figure out these protocol-level details is no longer the huge time sink it was
DenisM · · focus · HN ↗
saisrirampur · · focus · HN ↗
[dead]
saisrirampur · · focus · HN ↗
There’s also some interesting work happening in core with a similar goal of decoupling logical decoding from the Postgres process. We plan to share learnings from WalShadow with the core and hopefully help bring this to Postgres someday :) <a href="https://hacking.postgres.tv/topics/logical-decoding/" rel="nofollow">https://hacking.postgres.tv/topics/logical-decoding/
__s · · focus · HN ↗
agreed that there's a huge complexity cost to going this route
rgbrgb · · focus · HN ↗
ZiiS · · focus · HN ↗
saisrirampur · · focus · HN ↗
Physical WAL is key to WalShadow’s architecture, but most managed Postgres services don’t expose it to customers, making it impossible to use WalShadow. ClickHouse Managed Postgres manages both sides of the stack, allowing us to integrate WalShadow directly into the Postgres replication layer and provide a native path from Postgres WAL to ClickHouse.
phroas · · focus · HN ↗
__s · · focus · HN ↗
1. disabled
2. clickhouse, stores toast chunks on clickhouse then pulls them to resolve
3. shadow, stores toast in shadow catalog, obviously less latency than clickhouse but demands disk space