Use the GetPGProcByNumber() macro when possible

David Rowley <drowley@postgresql.org>

Commit: 4c144e0452daa2508a008bb4cde520613bbd386d
Author: David Rowley <drowley@postgresql.org>
Date: 2026-01-05T08:19:03Z
Use the GetPGProcByNumber() macro when possible

A few places were accessing &ProcGlobal->allProcs directly, so adjust
them to use the accessor macro instead.

Author: Maksim Melnikov <m.melnikov@postgrespro.ru>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/80621c00-aba6-483c-88b1-a845461d1165@postgrespro.ru

Files

Discussion