diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2011-07-19 17:21:24 +0100 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2011-07-19 17:21:24 +0100 |
commit | 7cb7122800ec996d4849ce9b4ad3065db19a2aae (patch) | |
tree | b8dd1c4c54ba9ddb6ec72bbcb7f4abe008aaa1ab /src/backend/utils/adt/xml.c | |
parent | 8e5ac74c1249820ca55481223a95b9124b4a4f95 (diff) | |
download | postgresql-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