model-writtenrun 9578 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Daurnimator reported that an RLS policy subquery checked permissions as the querying user instead of the view owner, causing an unexpected permission error, and supplied reproductions in #1.
- Dean Rasheed proposed propagating the permission-check identity through policy expressions in get_policies_for_relation() and added a regression test in #2; Stephen Frost expressed agreement after a quick review in #3, without substantive code feedback or testing sufficient for a suggested reviewer credit.
- Dean identified that the initial patch would modify policy expressions held in the relcache, so #4 moved the same propagation into get_row_security_policies() after the expressions had been copied.
- Dean committed #4 unchanged as e2d28c0f40 on April 2, with backpatching through PostgreSQL 9.5.
- After Daurnimator requested CommitFest submission in #5, Dean clarified in #6 that e2d28c0f40 had already landed and would appear in the upcoming minor releases, leaving no patch pending in this thread.