Avoid integer overflow in the loop that extracts histogram entries from
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 May 2009 18:02:11 +0000 (18:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 May 2009 18:02:11 +0000 (18:02 +0000)
commit616bceb8cb67c4f7641d933d0963373963e7492e
tree6a24cb7b66b832b6325b1b66ac41edb21eeb0043
parent5d540add340040373364cec82caa288e6cc22533
Avoid integer overflow in the loop that extracts histogram entries from
ANALYZE's total sample.  The original coding is at risk of overflow for
statistics targets exceeding about 2675; this was not a problem before
8.4 but it is now.  Per bug #4793 from Dennis Noordsij.
src/backend/commands/analyze.c