]> granicus.if.org Git - postgresql/commit
Improve histogram-filling loop in new compute_array_stats() code.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Mar 2012 20:40:16 +0000 (15:40 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Mar 2012 20:40:16 +0000 (15:40 -0500)
commit4fb694aebc524f2085152d8c98a85e01ef6136f4
treefd6238a94bd517d6c81c8073f097746141af92e3
parent141b89826ddb82b3afa7cf5e048d28a3d8e1c45c
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
src/backend/utils/adt/array_typanalyze.c