Skip searching for subxact locks at commit.
authorSimon Riggs <simon@2ndQuadrant.com>
Tue, 13 Nov 2012 19:00:19 +0000 (16:00 -0300)
committerSimon Riggs <simon@2ndQuadrant.com>
Tue, 13 Nov 2012 19:00:19 +0000 (16:00 -0300)
commitd9fad1076da4f3686b16e7c9f137118a3156a43a
tree7d323bce5e7d4ad75f56c2d6ed879f3329a49589
parent68f7fe140bebc2b9bd2953934539cedb603fd01b
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.
src/backend/access/transam/xact.c