model-writtenrun 6148 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ryo Matsumura reported that pgstat_create_backend() ignored its procnum argument and used MyProcNumber, proposing use of the argument to avoid potential future bugs while acknowledging there was no current bug #1.
- Michael Paquier confirmed this was an oversight, explained that initialization already guarantees MyProcNumber is set before the caller passes it, and attached a one-line correction intended for all affected branches to preserve clarity and support future backpatches #2.
- Ryo Matsumura reviewed the attachment and reported no concerns #3.
- Michael Paquier committed the attached change unchanged as 072c842135, crediting Matsumura's report and specifying backpatching through PostgreSQL 18.
- Michael Paquier closed the thread by confirming the fix and thanking Matsumura, leaving no outstanding work discussed in the thread #4.