aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-09-16 01:56:26 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-09-16 01:56:26 +0000
commit30df79a70b891626625ba53203db1d3262245612 (patch)
treef96d1351d2d9aca71554d656fbf9caa9e187c431 /src/backend/commands/dbcommands.c
parent8948ee37e570735e881439230d4fc6f7c9cbad63 (diff)
downloadpostgresql-30df79a70b891626625ba53203db1d3262245612.tar.gz
postgresql-30df79a70b891626625ba53203db1d3262245612.zip
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.)
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions