model-writtenrun 3086 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that ALTER PUBLICATION SET TABLE with a system column produced a low-level bitmap error instead of the useful diagnostic emitted by CREATE PUBLICATION, reproducing the issue from PostgreSQL 15 through master #1.
- Peter Smith proposed sharing the existing column validator with ALTER PUBLICATION #2; Tom Lane requested removal of duplicate processing and suggested constructing the bitmap from validated results #3 #5, which Peter implemented with a regression test #6.
- David Rowley proposed simplifying the validator to return only a Bitmapset, eliminating array sorting, and adding duplicate-column tests #7; Tom supported cleaning up the API before exporting it #9, while Peter initially retained the array outputs and added an optional bitmap output and duplicate tests #11.
- David supplied a minimal guard and an alternative broader Bitmapset refactor, both relying on later validation #12, but Peter demonstrated that unchanged publication membership could bypass that validation and silently accept invalid column lists #13.
- David retained the refactor and restored explicit validation inside AlterPublicationTables(), accepting inexpensive duplicate validation when necessary #14; Peter approved the result and suggested function, variable, and comment cleanup #15.
- David explained that the refactor avoided an external API returning two representations of the same data and favored a master-only fix #16; Peter endorsed the result #19, and Tom explicitly agreed that backpatching was unnecessary #17 #20.
- David committed #14 as 80ffcb8427, incorporating Peter's naming suggestions and minor comment and formatting edits, with both credited as authors; his final message confirmed the change had landed on master only #21.