model-writtenrun 5682 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Christoph Heiss proposed views that check underlying relations using the invoking user's privileges, motivated by a customer project's RLS requirements, and supplied implementation, tests, and documentation using security=relation_permissions in #1.
- Laurenz Albe argued that the feature extended beyond RLS and needed a boolean option rather than a single-value enum in #2; Christoph adopted security_invoker and moved the explanation into CREATE VIEW documentation in #3.
- Laurenz demonstrated that INSERT through an automatically updatable view still used the owner's permissions in #6, prompting Christoph to add rewriteTargetView() handling and a regression test in #7.
- After testing the update fix, Laurenz consolidated the series into one patch, restored existing test coverage, and cleaned up comments and documentation in #8.
- Wolfgang Walther's tests exposed confusing schema-privilege and chained-view behavior in #9; Laurenz established that schema lookup and unchanged execution identity were existing behavior in #10, and Christoph documented those distinctions in #12 rather than changing compatibility-sensitive semantics.
- Wolfgang's naming arguments in #14 led Christoph to adopt run_as_owner with a true default in #15, but Laurenz objected that the feature changes permission checks rather than execution identity in #16 and supplied check_permissions_owner with revised documentation in #20.
- Dean Rasheed identified an unused RangeTblEntry field, the need to initialize checkAsUser explicitly, and the requirement to preserve owner-based permissions for non-SELECT rules in #21; Christoph implemented those corrections and added rule and chained-view tests in #22.
- Dean advocated returning to security_invoker for familiar terminology and convenient default-off syntax in #23; Wolfgang accepted explicit documentation of the difference from SECURITY DEFINER functions in #24, Laurenz agreed in #25, and Christoph restored the name with that clarification in #26.
- Laurenz suggested a simpler checkAsUser assignment and clearer update-permissions prose in #27, Christoph incorporated both in #28, and Laurenz reported a successful check-world run and readiness for commit in #29.
- Dean posted the final revision in #30, fixing inconsistent permissions for updates through ordinary views over invoker views, adding invoker-aware LOCK handling, expanding RLS and update tests, and documenting nested-view semantics and related privilege rules.
- Laurenz approved the final revision in #31, and Dean committed it as 7faa5fc84b with only one documentation comma added; the commit credits Christoph's authorship and Laurenz and Wolfgang's reviews.
- Dean confirmed the push in the thread's last message, #34, leaving the complete security-invoker-view feature committed with no outstanding patch remainder.