From: | "Maksim(dot)Melnikov" <m(dot)melnikov(at)postgrespro(dot)ru> |
---|---|
To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Preferred use of macro GetPGProcByNumber |
Date: | 2025-09-12 12:39:09 |
Message-ID: | 80621c00-aba6-483c-88b1-a845461d1165@postgrespro.ru |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
v1-0001-Preferred-use-of-macro-GetPGProcByNumber.patch | text/x-patch | 14.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Sergey Shinderuk | 2025-09-12 12:43:09 | Re: Error with DEFAULT VALUE in temp table |
Previous Message | Efrain J. Berdecia | 2025-09-12 12:26:18 | Re: New recovery_target_timeline=primary option |