summaryrefslogtreecommitdiff
path: root/src/backend/commands/constraint.c
diff options
context:
space:
mode:
authorRobert Haas2011-11-14 15:04:55 +0000
committerRobert Haas2011-12-02 11:35:30 +0000
commit0755cb5964c0b33d1894add7bb3a80dbc11a4fb6 (patch)
treea75523a57795a38b9e7f93036ecb45af82977107 /src/backend/commands/constraint.c
parentf98db4f264ea655f713536db5eed89ebf9531191 (diff)
Reimplement ProcArrayLock as a new type of FlexLock.flexlock
By providing some custom handling for ProcArrayEndTransaction, we can avoid the need for ending transactions to repeatedly acquire the spinlock. The amount of work that needs to be done while holding the lock is so small that we can do it while holding the spinlock, or (when the lock is contended) make the last person to release the lock do it on behalf of the ending backend. This greatly improves performance for unlogged tables at high client counts; permanent tables also benefit, but performance is still severely throttled by WALInsertLock contention.
Diffstat (limited to 'src/backend/commands/constraint.c')
0 files changed, 0 insertions, 0 deletions