Preferred use of macro GetPGProcByNumber - Mailing list pgsql-hackers

From Maksim.Melnikov
Subject Preferred use of macro GetPGProcByNumber
Date
Msg-id 80621c00-aba6-483c-88b1-a845461d1165@postgrespro.ru
Whole thread Raw
List pgsql-hackers
Hello hackers,
I've noticed some places where elements of ProcGlobal->allProcs are 
addressed directly via arr index.
But in proc.h macros GetPGProcByNumber exist, that was added to get proc 
objects by index,
so I suggest minor refactoring 'ProcGlobal->allProcs[index]' -> 
'GetPGProcByNumber(index)'.
Please, see attached patch, branched from rev 6ede13d1b5f.

Best regards
Melnikov Maksim

Attachment

pgsql-hackers by date:

Previous
From: "Efrain J. Berdecia"
Date:
Subject: Re: New recovery_target_timeline=primary option
Next
From: Sergey Shinderuk
Date:
Subject: Re: Error with DEFAULT VALUE in temp table