Widen the nLocks counts in local lock tables from int to int64. This

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6d4b3f19ac64d08fe10fad6486fa2a7af7186020
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-09-16T01:56:43Z
Releases: 8.2.10
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.)

Files

PathChange+/−
src/include/storage/lock.h modified +3 −3