Re: calculation for NUM_FIXED_LWLOCKS - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: calculation for NUM_FIXED_LWLOCKS
Date
Msg-id 1403184648.41491.YahooMailNeo@web122306.mail.ne1.yahoo.com
Whole thread Raw
In response to calculation for NUM_FIXED_LWLOCKS  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: calculation for NUM_FIXED_LWLOCKS
List pgsql-hackers
Amit Kapila <amit.kapila16@gmail.com> wrote:

> #define PREDICATELOCK_MANAGER_LWLOCK_OFFSET \
> (NUM_INDIVIDUAL_LWLOCKS + NUM_LOCK_PARTITIONS)

> In this PREDICATELOCK_MANAGER_LWLOCK_OFFSET
> should consider NUM_BUFFER_PARTITIONS which means
> it should be:
>
> #define PREDICATELOCK_MANAGER_LWLOCK_OFFSET \
> (LOCK_MANAGER_LWLOCK_OFFSET + NUM_LOCK_PARTITIONS)

Agreed.  It looks like a pasto in commit ea9df81.

Will commit a fix shortly.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Minmax indexes
Next
From: Tom Lane
Date:
Subject: Re: WIP patch for multiple column assignment in UPDATE