model-writtenrun 8987 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yuli Khodorkovskiy proposed a core TRUNCATE access hook and corresponding sepgsql permission check in #1, explaining that existing SELinux policies lacked the permission and that deny_unknown determined compatibility.
- KaiGai Kohei recommended reusing DELETE permission in #2, while Stephen Frost argued that PostgreSQL's separate TRUNCATE privilege required an independent core hook in #3; Yuli then split the patches and temporarily used DELETE permission in sepgsql in #5.
- Stephen Frost explained that TRUNCATE bypasses DELETE triggers and has different MVCC behavior in #6, prompting Yuli to agree to restore a distinct SELinux permission in #8.
- Tom Lane raised compatibility concerns for older SELinux installations in #11 and #14, and Stephen Frost proposed optional regression tests in #12; Yuli and Joe Conway clarified how deny_unknown preserves existing behavior in #15 and #19, with Tom accepting RHEL7 as the oldest relevant platform in #21.
- Yuli's revised series in #23 restored db_table:{truncate}, added optional regression policy and separate success/failure tests, and ran those tests only when the loaded SELinux policy exposed the new permission.
- After Alvaro Herrera reported application conflicts in #25, Yuli rebased the series in #27 and asked about backpatching; Tom Lane objected to adding permission checks to stable releases in #29, while Yuli suggested backpatching just the hook in #30.
- Following a month without progress, Michael Paquier requested a rebase in #33, but Yuli demonstrated that the existing patches still applied and resent them unchanged in #34.
- Joe Conway successfully tested the series on Rhinoceros both with and without SELinux TRUNCATE permission and posted revisions in #36, simplifying the hook arguments and improving comments and test setup instructions.
- Joe corrected his accidental omission of the new SQL and expected-output files by posting the complete series in #37.
- Joe committed the core-hook patch from #37 unchanged as f7a2002e82, then committed its sepgsql patch unchanged as 4f66c93f61; both commits credit Yuli's authorship and explicitly decline backpatching.
- The thread ends with Joe confirming that both patches were pushed in #39, completing the PostgreSQL series while leaving execution of the new regression tests conditional on SELinux policy support.