On Thu, Feb 4, 2016 at 7:00 AM, Amit Kapila <amit.kapil...@gmail.com> wrote: > [ new patch ]
I've committed this after heavy rewriting. In particular, I merged two loops, used local variables to get rid of the very long and quite repetitive lines, and did various cleanup on the documentation and comments. I think we ought to move the buffer mapping, lock manager, and predicate lock manager locks into their own tranches also, perhaps using this new named-tranche facility. In addition, I think we should get rid of NumLWLocks(). It's no longer calculating anything; it just returns NUM_FIXED_LWLOCKS, and with the changes described in the first sentence of this paragraph, it will simply return NUM_INDIVIDUAL_LWLOCKS. We don't need a function just to do that; the assignment it does can be moved to the relevant caller. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers