model-writtenrun 8781 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fujii Masao reported that partitioned-table queries ignored individual partitions' ordinary DML privileges but checked their TRUNCATE privileges, initially proposing documentation in #1; Tom Lane argued in #2 that checking only explicitly named tables was intentional and TRUNCATE should be fixed.
- Amit Langote submitted the TRUNCATE fix in #3, separating privilege checks from other relation checks so inherited children could skip them while explicitly targeted and cascading relations retained them.
- Fujii identified unnecessary regression-test grants and the analogous LOCK TABLE inconsistency in #4; Amit removed the redundant statements and added a separate LOCK TABLE patch in #5, while noting that earlier historical decisions warranted further discussion.
- Fujii prepared TRUNCATE variants for all supported branches in #7, adapting helper functions and regression-role names; Amit supported keeping the branch implementations similar for maintenance in #8.
- Fujii announced the TRUNCATE landing in #9, with e6f1e560e4 implementing the master version associated with #7 and backports applying the behavior to supported releases, although the unavailable final attachments prevent exact comparison.
- Tom objected in #10 that changing privilege behavior in minor releases could break application security assumptions, especially in the final PostgreSQL 9.4 release; Fujii agreed in #11 to revert the backports and document the stable branches' existing behavior.
- After locating the inheritance documentation in #14 and receiving Fujii's confirmation in #15, Amit supplied TRUNCATE exception documentation in #16 and suggested covering LOCK TABLE as well.
- The agreed stable-branch rollback landed without an attached patch as 0d9f307cf8, ea7857dddb, 8b1a6499d0, c15b17f927, dc06d0839a, and d034ab0bb2, each exactly reversing its corresponding TRUNCATE backport while leaving the development-branch fix intact.
- Fujii revised Amit's documentation in #17 to cover both commands and place their exceptions before the row-security discussion; Amit accepted the placement and noted the remaining development-branch LOCK TABLE exception in #18.
- The documentation landed unchanged from #17 as 4988d7e969 for stable branches, with development-branch documentation left unchanged because TRUNCATE was fixed and LOCK TABLE was expected to follow.
- Amit resumed the remaining LOCK TABLE patch in #20; Fujii requested retaining its ONLY regression test in #21, and Amit restored that test and added direct-child permission-denial coverage in #22.
- Fujii explained in #23 that the retained test was the only LOCK TABLE ONLY coverage, Amit accepted that rationale in #24, and b7e51b350c landed unchanged from #22 on the development branch only.
- Fujii's final confirmation in #25 closed the work: both permission changes had landed for the development branch, stable releases retained their previous behavior with corrected documentation, and no patch remained pending.