pgsql: Calculate # of semaphores correctly with --disable-spinlocks.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Calculate # of semaphores correctly with --disable-spinlocks.
Дата
Msg-id E1UNkhg-00015c-6m@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Calculate # of semaphores correctly with --disable-spinlocks.

The old formula didn't take into account that each WAL sender process needs
a spinlock. We had also already exceeded the fixed number of spinlocks
reserved for misc purposes (10). Bump that to 30.

Backpatch to 9.0, where WAL senders were introduced. If I counted correctly,
9.0 had exactly 10 predefined spinlocks, and 9.1 exceeded that, but bump the
limit in 9.0 too because 10 is uncomfortably close to the edge.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/9508754ed7e3b5688c97a26bbe15af7e11d7f06a

Modified Files
--------------
src/backend/storage/lmgr/spin.c |   14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)


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

Предыдущее
От: pgsql@postgresql.org
Дата:
Сообщение: pgsql: Tag refs/tags/REL9_2_4 was created
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Calculate # of semaphores correctly with --disable-spinlocks.