aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2011-07-19 17:21:24 +0100
committerSimon Riggs <simon@2ndQuadrant.com>2011-07-19 17:21:24 +0100
commit7cb7122800ec996d4849ce9b4ad3065db19a2aae (patch)
treeb8dd1c4c54ba9ddb6ec72bbcb7f4abe008aaa1ab /src/backend/utils/adt/xml.c
parent8e5ac74c1249820ca55481223a95b9124b4a4f95 (diff)
downloadpostgresql-7cb7122800ec996d4849ce9b4ad3065db19a2aae.tar.gz
postgresql-7cb7122800ec996d4849ce9b4ad3065db19a2aae.zip
Remove O(N^2) performance issue with multiple SAVEPOINTs.
Subtransaction locks now released en masse at main commit, rather than repeatedly re-scanning for locks as we ascend the nested transaction tree. Split transaction state TBLOCK_SUBEND into two states, TBLOCK_SUBCOMMIT and TBLOCK_SUBRELEASE to allow the commit path to be optimised using the existing code in ResourceOwnerRelease() which appears to have been intended for this usage, judging from comments therein.
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions