model-writtenrun 5188 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Aleksander Alekseev proposed documenting PGPROC.pgprocno after finding it difficult to understand why ProcArrayAdd() sorting by pgprocno also preserves PGPROC pointer order #1.
- His patch explained that pgprocno is the index into ProcGlobal->allProcs, assigned once by InitProcGlobal(), with ProcGlobal->allProcs[n].pgprocno equal to n #1.
- Bruce Momjian committed the attached patch unchanged to master as 434c6cdf0c.
- Bruce Momjian confirmed that the patch had been applied, closing the thread with the proposed documentation fully landed #2.