postgresql/src/include/storage
Kevin Grittner bfaa8c665f Fix calculation of PREDICATELOCK_MANAGER_LWLOCK_OFFSET.
Commit ea9df812d8 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.
2014-06-19 08:40:37 -05:00
..
backendid.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
barrier.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
block.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
buf.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
buf_internals.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
buffile.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
bufmgr.h Fix multiple bugs in index page locking during hot-standby WAL replay. 2014-01-14 17:35:21 -05:00
bufpage.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
checksum.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
checksum_impl.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
copydir.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
dsm.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
dsm_impl.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
fd.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
freespace.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
fsm_internals.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
indexfsm.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
ipc.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
item.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
itemid.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
itemptr.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
large_object.h Add defenses against running with a wrong selection of LOBLKSIZE. 2014-06-05 11:31:06 -04:00
latch.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
lmgr.h Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
lock.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
lwlock.h Fix calculation of PREDICATELOCK_MANAGER_LWLOCK_OFFSET. 2014-06-19 08:40:37 -05:00
off.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_sema.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pg_shmem.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pmsignal.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pos.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
predicate.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
predicate_internals.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
proc.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
procarray.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
procsignal.h Export set_latch_on_sigusr1 symbol for Windows. 2014-01-17 12:48:23 -05:00
reinit.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
relfilenode.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
s_lock.h We don't need to include pg_sema.h in s_lock.h anymore. 2014-01-08 20:58:22 -05:00
shm_mq.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
shm_toc.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
shmem.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
sinval.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
sinvaladt.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
smgr.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
spin.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
standby.h Change the signature of rm_desc so that it's passed a XLogRecord. 2014-06-14 10:46:48 +03:00