On Tue, Aug 4, 2015 at 11:29 AM, Robert Haas <robertmh...@gmail.com> wrote: > 4. I factored out the actual XID-clearing logic into a new function > ProcArrayEndTransactionInternal instead of repeating it twice. On the > flip side, I merged PushProcAndWaitForXidClear with > PopProcsAndClearXids and renamed the result to ProcArrayGroupClearXid, > since there seemed to be no need to separate them.
Thinking about this a bit more, it's probably worth sticking an "inline" designation on ProcArrayEndTransactionInternal. Keeping the time for which we hold ProcArrayLock in exclusive mode down to the absolute minimum possible number of instructions seems like a good plan. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers