Improve histogram-filling loop in new compute_array_stats() code.
Tom Lane <tgl@sss.pgh.pa.us>
Improve histogram-filling loop in new compute_array_stats() code. Do "frac" arithmetic in int64 to prevent overflow with large statistics targets, and improve the comments so people have some chance of understanding how it works. Alexander Korotkov and Tom Lane
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/array_typanalyze.c | modified | +44 −19 |