model-writtenrun 4858 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Anton A. Melnikov reported that cross-version pg_upgrade tests failed because PostgreSQL 16 changed aclitem representation and privilege changes produced dump differences; his first patch converted aclitem columns to text and replaced explicit privilege lists with ALL #1.
- Tom Lane questioned whether privilege normalization would mask bugs #2, while Michael Paquier requested broader consideration of aclitem-bearing relations and suggested configurable external filtering for dump differences #3 #4.
- Anton split SQL adaptation from filtering, switched to catalog-based aclitem detection, proposed dropping affected materialized views and indexes, and added external filtering rules; he also discovered that materialized views did not belong in the WITH OIDS adaptation #5.
- Michael committed the WITH OIDS correction separately, adding foreign-table handling and identifier quoting in 3022cb1433, then committed table-only aclitem conversion in f4f2f2b84a; he excluded broader relation handling because it remained incomplete for arrays, domains, composite types, and index expressions while adding complexity #6.
- Justin Pryzby found that the committed aclitem conversion repeatedly scanned pg_attribute and proposed a single-scan alternative #7; Michael retained the DO-block structure but supplied a joined query #8.
- Anton benchmarked the alternatives and measured Michael's replacement at 36 milliseconds #9 #10, Justin approved it #11, and Michael landed the performance fix as d3c0cc4447 #13.
- Michael challenged slash-based parsing because rules could contain paths or escaped characters and requested documentation examples instead of a separate example file #14; Anton revised the remaining series to evaluate complete Perl rules and separated the unconditional privilege filter #15.
- Michael committed only the configurable filtering portion as 9814ff5500, renaming the environment variable to filter_rules and improving rule reading, blank-line handling, diagnostics, and documentation; he rejected the unconditional privilege filter as redundant and accepted string evaluation for user-owned rules #16.
- Anton reported successful cross-version testing from PostgreSQL 9.5 onward, subject to suitable dump filters, and proposed pursuing automation separately #17; Michael marked the work committed and encouraged publishing version-specific rules outside the source tree #18, after which Anton closed with thanks #19.