summaryrefslogtreecommitdiff
path: root/src/include/regex/regex.h
diff options
context:
space:
mode:
authorHeikki Linnakangas2013-04-04 13:31:44 +0000
committerHeikki Linnakangas2013-04-04 13:40:37 +0000
commitb8ed4cc9627de437e5eafdb81631a0d0f063abb3 (patch)
tree06713bbc701c8875db0ffe94b34611bf9c01c117 /src/include/regex/regex.h
parentf7b0006f42913b6d641c9f0bef6fad1f670b9194 (diff)
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.
Diffstat (limited to 'src/include/regex/regex.h')
0 files changed, 0 insertions, 0 deletions