model-writtenrun 4765 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Antonin Houska reported that enabling RLS caused COPY TO to include inheritance children contrary to its documentation, and supplied a reproducer and a one-line fix disabling inheritance in the generated query #1.
- Yugo Nagata confirmed that the fix worked and requested an explanatory comment and regression coverage; Tom Lane agreed with the intended behavior and called for any generated-query examples to use ONLY, after which Yugo identified the affected BeginCopyTo comment #2 #3 #4.
- Antonin submitted a revision adding a short comment but questioned the need for a regression test, explaining that his reproducer demonstrated the user-visible consequence of the bug he found by reading the code #5.
- Stephen Frost supported the behavioral correction and the code-comment update, suggested clarifying the RLS documentation, and questioned whether the change should be backpatched #6.
- Tom argued that backpatching was necessary because the alternative would require confusing documentation exceptions for RLS #7.
- Tom committed Antonin's revised fix with expanded comments and inheritance regression tests as d66bb048c3, backpatching all supported branches; his closing message explained that the existing documentation already specified the correct behavior and that tests were needed to verify the fix on each branch #8.