pgsql: Skip searching for subxact locks at commit.

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Skip searching for subxact locks at commit.
Date: 2012-11-13 19:14:45
Message-ID: E1TYLwb-0006zw-PV@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/31541778b612fd59257a2bf571229f400d35ecf0

Modified Files
--------------
src/backend/access/transam/xact.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-11-13 19:46:20 pgsql: Fix memory leaks in record_out() and record_send().
Previous Message Simon Riggs 2012-11-13 19:10:43 pgsql: Skip searching for subxact locks at commit.