Skip site navigation (1) Skip section navigation (2)

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:10:43
Message-ID: E1TYLsh-0006yh-EG@gemulon.postgresql.org (view raw or flat)
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
------
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(-)

pgsql-committers by date

Next:From: Simon RiggsDate: 2012-11-13 19:14:45
Subject: pgsql: Skip searching for subxact locks at commit.
Previous:From: Simon RiggsDate: 2012-11-13 18:59:12
Subject: pgsql: Clarify docs on hot standby lock release

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group