Hackers,
I've attached a small patch which aims to improve the performance ofAccessExclusiveLock when there are many AccessExclusiveLock stored.
-- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services