pgsql: Skip searching for subxact locks at commit.
pgsql: Skip searching for subxact locks at commit.
От:
Simon Riggs <simon@2ndQuadrant.com>
Дата:
Skip searching for subxact locks at commit. At commit all standby locks are released for the top-level transaction, so searching for locks for each subtransaction is both pointless and costly (N^2) in the presence of many AccessExclusiveLocks. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/d9fad1076da4f3686b16e7c9f137118a3156a43a Modified Files -------------- src/backend/access/transam/xact.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)