model-writtenrun 955 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Zhilin reported that INSERT and COPY could produce logically identical short varlena values with different header sizes, causing false corruption reports, and proposed converting four-byte headers to one-byte headers before fingerprinting in #1.
- Alexander Lakhin exposed two related storage-policy problems: normalization could produce an oversized index tuple, and changing storage from plain to extended could cause another fingerprint mismatch, as demonstrated in #2 and #5.
- Andrey Borodin verified the original fix and rebased it in #3; after identifying a regression-test file-path failure, he recommended the build directory, which Michael adopted in #7.
- Andrey argued that the additional failures deserved separate fixes in #6, while Alexander Lakhin favored addressing the broader class if practical but had no concrete implementation proposal in #9.
- Jian He proposed eliminating the temporary file with COPY FROM stdin in #10, and Andrey expanded the submission into three patches in #11, adding compression-policy normalization and an attempted oversized-tuple exemption.
- Michael incorporated Jian's test simplification and removed an unused variable in #12; Jian then requested further cleanup in #13, and Alexander Lakhin showed that the oversized-tuple patch emitted notices for previously working cases in #14.
- Alexander Korotkov explained in #15 that heap_compute_data_size() ignored compression and suggested an index_form_tuple() variant that could return an oversized result without throwing; Andrey agreed in #18 to defer that fix to a separate thread.
- Following Alexander Lakhin's cleanup requests in #16, Korotkov posted the two retained fixes in #19, polishing comments and tests and changing the compression guard from !VARATT_IS_EXTENDED to !VARATT_IS_COMPRESSED; #20 corrected a commit-message typo spotted by Andrey.
- The two members of #20 landed separately on March 23, 2024: a6ddb8ad0a implemented Michael's short-header normalization with a commit-message typo correction, and 3676b846b1 implemented Andrey's compression-policy normalization with unchanged code.
- The thread reopened in May 2026 when Andres Freund's experimental VARSIZE() assertion exposed a short-header input in the committed normalization code; he demonstrated the bogus size calculation and proposed excluding short values in #21, then explained the guard distinction in #23.
- Andrey proposed restoring !VARATT_IS_EXTENDED and adding the assertion in #24, but Korotkov offered the simpler VARSIZE_ANY() accessor replacement in #25, which Andrey accepted in #26.
- Michael Paquier questioned the possible performance cost in #27, Andrey expected no meaningful difference in #28, and Korotkov proposed pushing and backpatching in #29.
- At the last message, #31, the accessor fix still awaited Korotkov's action; it subsequently landed unchanged from #25 as da1eff08a5 on June 14, 2026, while the oversized-tuple issue remained deferred outside this thread.