Thread: pgsql: Improve BackendXidGetPid() to only access allProcs on matching X

pgsql: Improve BackendXidGetPid() to only access allProcs on matching X

From
Michael Paquier
Date:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e722846daf4a37797ee39bc8ca3e78a4ef437f51

Modified Files
--------------
src/backend/storage/ipc/procarray.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)