pgsql: Use the GetPGProcByNumber() macro when possible - Mailing list pgsql-committers

From David Rowley
Subject pgsql: Use the GetPGProcByNumber() macro when possible
Date
Msg-id E1vcfob-004bXq-0I@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4c144e0452daa2508a008bb4cde520613bbd386d

Modified Files
--------------
src/backend/access/transam/clog.c      | 4 ++--
src/backend/postmaster/pgarch.c        | 2 +-
src/backend/postmaster/walsummarizer.c | 2 +-
src/backend/storage/buffer/freelist.c  | 2 +-
src/backend/storage/lmgr/lock.c        | 6 +++---
src/backend/storage/lmgr/proc.c        | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Improve the comments atop build_replindex_scan_key().
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Tighten up assertion on a local variable