Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Training a 4B model to produce 81% faster query plans than Postgres(rohanbansal.com ↗)
    60comments
  2. Breaking the 1.58-bit Barrier for Ternary LLMs(arxiv.org ↗)
    7comments
  3. Nvidia announces native GPU programming in Rust(nvidia.com ↗)
    24comments
  4. Xiaomi Mimo 2.6 live post-training dashboard(xiaomi.com ↗)
    48comments
  5. OpenSpec – A lightweight and configurable AI spec framework(openspec.dev ↗)
    discuss
  6. Small programming tricks(will-keleher.com ↗)
    171comments
  7. Backups Aren't Simple(filipovski.net ↗)
    5comments
  8. Reversing Factorio's RNG(gegell.github.io ↗)
    11comments
  9. Performance Improvements in .NET 11(devblogs.microsoft.com/dotnet ↗)
    17comments
  10. AWS says it can't restore some data from mideast facilities struck by Iran(wsj.com ↗)
    124comments
  11. The engineering behind the US Strategic Petroleum Reserve(johnjwang.com ↗)
    1comments
  12. Accurate Models of AMD Matrix Cores(arxiv.org ↗)
    6comments
  13. Japan's book scene is moving from bookstores to libraries(untranslatedjp.substack.com ↗)
    20comments
  14. How good are frontier models at physics?(arxiv.org ↗)
    25comments
  15. Reverse-engineered Jev-like model(github.com/vinnylarouge ↗)
    6comments
  16. Dream-RSI: Recursive Self-Improvement through Evolving Worlds(arxiv.org ↗)
    49comments
  17. Mistral X Mozilla: Private, Multilingual AI Browsing(mistral.ai ↗)
    182comments
  18. Show HN: An e-ink frame that hears birds and draws them as 1800s illustrations(github.com/arnegiacomo ↗)
    236comments
  19. Anatomy of a Texture(agentlien.github.io ↗)
    11comments
  20. Anecdotally, programmers dislike "reduce"(evanhahn.com ↗)
    116comments
  21. WalShadow: Sub-second Postgres replication to ClickHouse from physical WAL(clickhouse.com ↗)
    5comments
  22. Why Does the Universe Expand?(cosmicave.org ↗)
    1comments
  23. Destroy After Reading: photocopiers,cheap paper and DIY gave metal it's look(truegrittexturesupply.com ↗)
    discuss
  24. I replaced my brown-noise browser tab with a menu bar app(oldmanrahul.com ↗)
    discuss
  25. Vectorized and performance-portable Quicksort (2022)(googleblog.com ↗)
    24comments
  26. Training Text-to-Image Models 3.6× Faster(linum.ai ↗)
    1comments
  27. Hackers Got Inside a Flock Camera(wired.com ↗)
    207comments
  28. The DeepMind Institute(deepmind.com ↗)
    41comments
  29. Kyber (YC W23) Is Hiring a Forward Deployed Engineer(ycombinator.com ↗)
    discuss
  30. Australia says it could follow Canada in forging deeper ties with EU(independent.co.uk ↗)
    discuss

WalShadow: Sub-second Postgres replication to ClickHouse from physical WAL

33 pointsby 5d agoclickhouse.com
5 comments
2h agoHN ↗

They're not using `wal_level = logical`, which has been the "friendly" way of doing CDC on Postgres since ever, but are going straight to `wal_level = replica` which, afaik, has never really been used to build something atop of except Postgres' own replication.

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

2h agoHN ↗

It’s probably brittle though? Replication implementation has to change in some ways from one version to another.

1h agoHN ↗

Ack, thank you! The idea was to minimize the operational overhead of logical replication (slot growth, slowdowns from reorder buffering, handling advance schema changes) and reducing load on Postgres. This approach lets us purpose-build replication for ClickHouse. Postgres logical replication was primarily designed keeping in mind with Postgres as the target.

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 :) https://hacking.postgres.tv/topics/logical-decoding/

1h agoHN ↗

would this work with a postgres hosted on supabase? for our company brain mcp thing we mirror postgres data (along with server logs, banking data, slack, etc) in clickhouse but took a very inefficient polling approach since it works with any read-only db connection string. always looking to improve that and get rid of latency though.