model-writtenrun 4253 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Matthias van de Meent proposed logging heap command IDs to support Neon's page reconstruction and potentially offload reads within primary transactions to physical replicas; the initial patch credited Anastasia Lubennikova and Matthias #1.
- Tom Lane challenged the cost of enlarging WAL records for a narrow use case #2, prompting Matthias to make command IDs optional under a new remote WAL level and move resource-manager flags into existing WAL-header padding; Matthias reported little pgbench impact at replica level and a small slowdown at remote level #3.
- Bruce Momjian raised concern about the enlarged patch #4, and Matthias explained that most of the expansion mechanically redirected resource-manager code to the new header field #5.
- The proposal stalled and was marked Returned with Feedback after receiving no updates #8.
- Heikki Linnakangas revived the idea as a logical-decoding experiment, replacing separate HEAP2_NEW_CID records with command IDs in catalog heap records #9. He found that later tuple changes could overwrite command IDs needed by historical snapshots, so the mapping machinery remained necessary, while Neon's need to preserve combo CIDs differed from logical decoding's need for original command IDs #9.
- Heikki left the experimental work for the archives and recommended only two independent cleanups: clarifying the mapping comment and removing a redundant fast_forward check #9. He later rebased those two patches alone #10, and Andres Freund approved both in the thread's final message #11.
- Heikki committed both cleanups unchanged from #10 on June 30, 2023: the mapping explanation as a0dd4c95b9 and the redundant-check removal as e251e780bf; the broader CommandID proposal and logical-decoding experiment remained uncommitted.