Replication and MVCC
Replication and MVCC
Posted Aug 11, 2016 7:38 UTC (Thu) by ringerc (subscriber, #3071)In reply to: Replication and MVCC by epa
Parent article: Why Uber dropped PostgreSQL
Ideally we'd instead store blocks still needed on a replica, but no longer needed on the master, out-of-line using a copy-on-write mechanism of some form. Problem is that it'd have to do indexes as well as the heap, and when we do a tid lookup from an index we'd have to look up both the main heap block and some possibly large number of block copies. It'd get complex fast, and complex means buggy.
It'd also slow down queries on the replica, make replica change apply slower, etc.
Everything is trade-offs, and I think Uber's article misses that somewhat.