Use the GetPGProcByNumber() macro when possible
David Rowley <drowley@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/clog.c | modified | +2 −2 |
| src/backend/postmaster/pgarch.c | modified | +1 −1 |
| src/backend/postmaster/walsummarizer.c | modified | +1 −1 |
| src/backend/storage/buffer/freelist.c | modified | +1 −1 |
| src/backend/storage/lmgr/lock.c | modified | +3 −3 |
| src/backend/storage/lmgr/proc.c | modified | +1 −1 |
Discussion
- Preferred use of macro GetPGProcByNumber 5 messages · 2025-09-12 → 2026-01-05