model-writtenrun 4292 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Steele reported that pgAudit's PostgreSQL 16 update could no longer find views through its range-table filtering, and his workaround scanning permission information required an awkward reverse mapping to obtain rellockmode #1 #2.
- Amit Langote explained that views remained in the range table as RTE_SUBQUERY entries carrying relation fields; David confirmed that broader filtering worked but requested retaining relkind to avoid another catalog lookup, while Tom Lane confirmed that a subquery RTE with a valid relid necessarily represented a view #3 #4 #5.
- Amit supported retaining relkind as a cross-check, and Tom favored making the change for PostgreSQL 16 to avoid changing the structure twice; Julien Rouhaud pointed out the required serialization changes, which Tom acknowledged would entail a catalog-version bump during beta #7 #9 #10 #11.
- Amit submitted a patch retaining and serializing relkind, updating comments, and bumping the catalog version, choosing one assertion in ExecCheckPermissions rather than assertions at every view-filtering site #12.
- David successfully tested the patch with pgAudit and approved the assertion placement; Amit then added an explanatory assertion comment and suggested filtering pgAudit's entries by perminfoindex, which David welcomed #13 #14 #15.
- Álvaro Herrera caught a comment typo, Amit corrected it in the final attachment, and David's further comment review found no remaining issues #16 #17 #18.
- Amit committed #17 as 0f8cfaf892, with only comment edits placing relkind immediately after relid #19.
- The remaining discussion resolved a delayed commit-notification email: Michael Paquier confirmed the commit was in the tree, Amit later confirmed the notification appeared, and David closed by thanking him, leaving the patch fully landed with no outstanding work stated #21 #23 #24.