model-writtenrun 6983 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bertrand Drouvot used Coccinelle to identify two semantically inconsistent allocation types and submitted their corrections alongside a 234-file conversion to sizeof(*var), intended to keep allocation sizes consistent with variable types #1.
- Andres Freund opposed the mass conversion because of review cost and backpatch hazards, while Alvaro Herrera emphasized disruption to pending patches and downstream forks; Bertrand agreed that this conversion did not justify the churn #2 #4 #5 #6.
- Tom Lane argued that sizeof(*var) removes useful type information and permits undetected wrong-variable typos, favoring the compiler checks provided by typed allocation macros; Bertrand acknowledged those checks, Michael Paquier supported the macros, and Peter Eisentraut recalled an earlier rejected variable-based allocation proposal #3 #7 #8 #9.
- Michael Paquier revisited the two small corrections independently, accepted the btree_gist type inconsistency, and questioned whether pg_verifybackup should instead use uint8 buffers; Bertrand favored the original small correction because changing buffer types would propagate through astreamer and PQExpBuffer interfaces #10 #11.
- Michael Paquier committed only the btree_gist portion as 5cf03552fb, combining Bertrand's GBT_VARKEY correction from #1 with David Geier's palloc_array() proposal from thread #52754 and converting the adjacent Vsrt allocation for consistency, as explained in #12.
- Michael left the byte-buffer typing question open for further comments, so the pg_verifybackup correction remained unresolved while the mass sizeof(*var) conversion had been abandoned #12 #6.
- The thread ended with Bruce Momjian urging discussion of desirability before implementation; no further patchset or resolution of the remaining buffer-type question appeared #13.