pgsql: Fix calculation of PREDICATELOCK_MANAGER_LWLOCK_OFFSET.

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема pgsql: Fix calculation of PREDICATELOCK_MANAGER_LWLOCK_OFFSET.
Дата
Msg-id E1Wxcow-00080z-Bz@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix calculation of PREDICATELOCK_MANAGER_LWLOCK_OFFSET.

Commit ea9df812d8502fff74e7bc37d61bdc7d66d77a7f failed to include
NUM_BUFFER_PARTITIONS in this offset, resulting in a bad offset.
Ultimately this threw off NUM_FIXED_LWLOCKS which is based on
earlier offsets, leading to memory allocation problems.  It seems
likely to have also caused increased LWLOCK contention when
serializable transactions were used, because lightweight locks used
for that overlapped others.

Reported by Amit Kapila with analysis and fix.
Backpatch to 9.4, where the bug was introduced.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/909cab83058b12cabec6fb10c945f67ef09de5ec

Modified Files
--------------
src/include/storage/lwlock.h |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Don't allow data_directory to be set in postgresql.auto.conf by
Следующее
От: Kevin Grittner
Дата:
Сообщение: pgsql: Fix calculation of PREDICATELOCK_MANAGER_LWLOCK_OFFSET.