model-writtenrun 3968 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported intermittent schema_to_xmlschema() failures under CATCACHE_FORCE_RELEASE with parallel workers, showing that an existence check could succeed before the subsequent privilege lookup failed #1; his investigation traced snapshot advancement to catalog-index locking in workers #2.
- Kyotaro Horiguchi proposed disabling parallel workers around the XML helper's SPI query and reported that his proof-of-concept patch avoided the failure #5.
- Alexander explained that disabling parallelism in the XML helper left direct privilege queries vulnerable, and supplied an alternative XML-query workaround using an OFFSET 0 subquery to isolate privilege checks from other schemas' changes #6.
- Tom Lane questioned the safety of separate existence checks and lookups and considered either changing the privilege APIs or fixing cache behavior #7; Alexander identified the same pattern in visibility functions and clarified that forced cache release, rather than invalidation during closing, explained the second lookup's failure #8 #10.
- Tom rejected parallel restrictions as an incidental workaround #12, Michael Paquier argued for preserving the existence-check pattern #15, and Tom weighed compatibility against the fragility of distant lookups #16; Kyotaro subsequently withdrew his concern about different workers returning inconsistent results #17.
- After the discussion paused, Andy Fan reviewed and endorsed Alexander's narrower XML-query patch as a mild way to stop the unstable test, preferring it to forcing an index scan only in the test #18.
- Returning in October, Tom chose to eliminate reliance on separate existence checks and posted two patches extending the privilege APIs with is_missing outputs, improving column ACL lookup efficiency, and addressing sequence privilege checks; he reserved visibility functions for separate work and raised a further concern about invalidation during syscache detoasting #19.
- Alexander reviewed both ACL patches, verified missing-object handling across the relevant SQL functions, and requested a comment punctuation correction #20.
- Alexander reproduced the visibility-function failure after lowering its planner cost #21, and Tom reproduced it without changing costs by removing a selective query condition, confirming that this function family also needed repair #22.
- Tom combined both ACL patches from #19 into 403ac226dd with only comment and whitespace edits, then independently implemented the discussed visibility fix in fcdd6689d0; both commits were limited to HEAD because failure in ordinary builds had not been demonstrated.
- Tom announced that both function families were fixed while syscache detoasting safety remained unresolved #23; Alexander's final reply reported that detoasting was unsafe and linked a separate bug report containing proof, leaving that follow-up outside the fixes landed here #24.