[BackendXidGetPid] only access allProcs when xid matches

Поиск
Список
Период
Сортировка
От Junwang Zhao
Тема [BackendXidGetPid] only access allProcs when xid matches
Дата
Msg-id CAEG8a3+i9gtqF65B+g_puVaCQuf0rZC-EMqMyEjGFJYOqUUWfA@mail.gmail.com
обсуждение исходный текст
Ответы Re: [BackendXidGetPid] only access allProcs when xid matches
Список pgsql-hackers
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

Вложения

В списке pgsql-hackers по дате отправления: