model-writtenrun 6186 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sadhuprasad Patro proposed extending both pg_stat_reset() and pg_stat_reset_single_table_counters() to reset shared-object statistics in #1; Himanshu Upadhyaya corrected the mistaken pg_attribute example in #3, and Mahendra Singh Thalor demonstrated the change working with pg_database in #4.
- Himanshu requested removal of duplicated reset code in #5, Dilip Kumar proposed sending separate database and shared-object reset requests from the caller in #6, and Mahendra supplied an alternative full patch using a common reset helper and IsSharedRelation-based single-object lookup in #7.
- Mahendra requested documentation and tests in #8 and suggested a separate shared-table reset function in #9; Sadhuprasad explained that indexes and TOAST relations require their own reset calls in #10 and omitted automated tests because asynchronous collector processing produced inconsistent results in #12.
- Sadhuprasad retained the existing SQL functions and combined direct shared-relation lookup with Dilip's caller-side bulk-reset design in #13; Mahendra identified a missing header and questioned the extra collector message in #14 and #15, while Dilip defended keeping reset policy in the caller in #16.
- Sadhuprasad removed the pg_stat_reset() extension in #18 because a database-level operation would also clear statistics shared with other databases, leaving only explicit single-relation resets; Mahendra explained in #20 that an offline discussion with Robert Haas had supported this narrower scope.
- The revisions in #19 and #24 added the missing include, corrected include ordering, clarified shared-object documentation, and simplified the condition following Mahendra's comments in #20 and #21 and Fujii Masao's wording suggestion in #22; Mahendra approved the result in #25.
- Fujii updated the catalog function description in #26, Sadhuprasad agreed in #27, and e04267844a landed that attachment with only an additional catalog-version bump.
- Fujii confirmed the commit in the final message #28, completing the narrowed single-relation feature; the database-wide shared-statistics reset extension and automated tests remained omitted for the reasons given in #18 and #12.