Avoid integer overflow in the loop that extracts histogram entries from
commit2036841a43082d273b20e71c289109a7050e6e19
authortgl <tgl>
Tue, 5 May 2009 18:02:11 +0000 (5 18:02 +0000)
committertgl <tgl>
Tue, 5 May 2009 18:02:11 +0000 (5 18:02 +0000)
tree8f2af5fd71390160db7c22ea027f4178d3259b99
parent66e420a87cbc701487370314edc4cfd04433ab92
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