model-writtenrun 1858 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sami Imseih noticed that pgstat_report_inj() updated shared statistics directly and proposed an inline change to accumulate updates in the pending entry for later flushing #1.
- Andres Freund initially questioned whether injection-point statistics needed contention avoidance, then identified the missing shared-stat locking and potential lost updates; Sami agreed and argued that this example should demonstrate the pending-entry pattern used by real extensions #2 #3 #4.
- Michael Paquier agreed and attached a patch implementing Sami's correction, renaming the local variable to pending and clarifying its comment to match the subscription-statistics example #5.
- Sami Imseih approved the attached patch before it was committed #6.
- Michael Paquier committed the attached code unchanged as 39f67d9b55, credited Sami as author, and confirmed application in the final message, leaving no outstanding work stated in the thread #7.