]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Use the GetPGProcByNumber() macro when possible
authorDavid Rowley <drowley@postgresql.org>
Mon, 5 Jan 2026 08:19:03 +0000 (21:19 +1300)
committerDavid Rowley <drowley@postgresql.org>
Mon, 5 Jan 2026 08:19:03 +0000 (21:19 +1300)
commit4c144e0452daa2508a008bb4cde520613bbd386d
treefd91ee565ceb8113930fe5c2901b2a7a353177ce
parent3f906d3af99d4d926c942ebdca7b2f92a209d346
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
src/backend/access/transam/clog.c
src/backend/postmaster/pgarch.c
src/backend/postmaster/walsummarizer.c
src/backend/storage/buffer/freelist.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/proc.c