In function `BackendXidGetPid`, when looping every proc's
    TransactionId, there is no need to access its PGPROC since there
    is shared memory access: `arrayP->pgprocnos[index]`.

    Though the compiler can optimize this kind of inefficiency, I
    believe we should ship with better code.


-- 
Regards
Junwang Zhao

Attachment: 0001-BackendXidGetPid-only-access-allProcs-when-xid-match.patch
Description: Binary data

Reply via email to