Improve BackendXidGetPid() to only access allProcs on matching XID
Michael Paquier <michael@paquier.xyz>
Improve BackendXidGetPid() to only access allProcs on matching XID Compilers are able to optimize that, but it makes the code slightly more readable this way. Author: Zhao Junwang Reviewed-by: Ashutosh Bapat Discussion: https://postgr.es/m/CAEG8a3+i9gtqF65B+g_puVaCQuf0rZC-EMqMyEjGFJYOqUUWfA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/procarray.c | modified | +3 −3 |
Discussion
- [BackendXidGetPid] only access allProcs when xid matches 12 messages · 2023-08-09 → 2023-09-08