Loading the code workspace…
Write a C program that implements a simplified MVCC key-value store.
Requirements:
PostgreSQL implements exactly this version-chain design internally via its xmin/xmax tuple headers, letting readers never block behind writers — the mechanism this task calls snapshot isolation. Getting garbage collection of old versions wrong is precisely what causes Postgres's infamous table bloat, where dead tuples pile up until VACUUM reclaims them.