model-writtenrun 9312 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Janes reported an unused-variable warning in statext_mcv_serialize() and supplied a patch marking itemlen as used only by assertions in #1.
- Tomas Vondra explained that serialization changes had left itemlen referenced by just one assertion, making the variable unnecessary #2.
- Tomas Vondra chose to remove itemlen and call ITEM_SIZE(dim) directly inside the assertion instead of adding the annotation proposed by Jeff Janes #2.
- The replacement fix landed in ef777cb093, with Jeff Janes credited as reporter and a backpatch to PostgreSQL 12 specified.
- The thread ends with Tomas Vondra's stated implementation choice #2; the subsequent commit resolves the reported warning, with no outstanding work identified ef777cb093.