On Sun, Sep 13, 2015 at 11:09 AM, Ildus Kurbangaliev <i.kurbangal...@postgrespro.ru> wrote: > This is pretty much the same that my patch does. There is > two API calls (for a size determination and a tranche creation), except > MainLWLockArray is used only for individual LWLocks.
It's not really the same. Your patch doesn't provide any interlock to ensure that the number of locks requested for a particular subsystem during shmem sizing is the same as the number actually created during shmem setup. That's an interlock I'd really like to have. -- 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