model-writtenrun 7336 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kasahara Tatsuhito reported that pg_logical_slot_get_changes_guts() passed an incorrect variable to tuplestore_donestoring(), harmless because the macro does nothing, and proposed correcting the argument or removing obsolete calls while retaining the compatibility definition #1.
- Michael Paquier supported removing all C-code references on the development branch to prevent further copying of the no-op calls, and Kasahara Tatsuhito submitted the cleanup across 23 C files #2 #3.
- Justin Pryzby pointed out that Melanie's separate tuplestore patch also removed the erroneous call; Michael Paquier assessed the overlap and supported proceeding with this cleanup independently #4 #5.
- Michael Paquier committed the attached cleanup with only an additional compatibility-comment adjustment in src/include/utils/tuplestore.h, then confirmed its application and lack of impact on Melanie's patch #3 d61a361d1a #6.
- After the cleanup landed, Dagfinn Ilmari Mannsåker suggested exposing compatibility macros only to extensions; Michael Paquier welcomed the idea but identified complications with extensions built inside the source tree and suggested potentially restricting the exclusion to src/backend/ and src/bin/, leaving that broader build-policy question unresolved #8 #9.