]> granicus.if.org Git - postgresql/commit
Widen the nLocks counts in local lock tables from int to int64. This
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Sep 2008 01:56:49 +0000 (01:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Sep 2008 01:56:49 +0000 (01:56 +0000)
commit839ed8bd069a37b5386565c6cce27e1317e07747
tree5df21416345bab0409b0af35d8438f420188d3a7
parent74da120713d15f8fb06c65f92111db6654ecfe2e
Widen the nLocks counts in local lock tables from int to int64.  This
forestalls potential overflow when the same table (or other object, but
usually tables) is accessed by very many successive queries within a single
transaction.  Per report from Michael Milligan.

Back-patch to 8.0, which is as far back as the patch conveniently applies.
There have been no reports of overflow in pre-8.3 releases, but clearly the
risk existed all along.  (Michael's report suggests that 8.3 may consume lock
counts faster than prior releases, but with no test case to look at it's hard
to be sure about that.  Widening the counts seems a good future-proofing
measure in any event.)
src/include/storage/lock.h