Re: [HACKERS] Optimizing GetRunningTransactionLocks()

2011-10-31 Thread Tom Lane
Simon Riggs writes: > My list of things to do included optimising > GetRunningTransactionLocks(), run once per checkpoint. > I was thinking I needed to try harder to avoid acquiring LWlocks on > all the lock partitions. > ISTM that I don't need to do this - lwlocks on lock partitions are > almos

[HACKERS] Optimizing GetRunningTransactionLocks()

2011-10-31 Thread Simon Riggs
My list of things to do included optimising GetRunningTransactionLocks(), run once per checkpoint. I was thinking I needed to try harder to avoid acquiring LWlocks on all the lock partitions. ISTM that I don't need to do this - lwlocks on lock partitions are almost never contended now, so this sh