Skip site navigation (1) Skip section navigation (2)

pgsql: Improve histogram-filling loop in new compute_array_stats()code

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve histogram-filling loop in new compute_array_stats()code
Date: 2012-03-04 20:40:44
Message-ID: E1S4IEW-0002EM-TQ@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4fb694aebc524f2085152d8c98a85e01ef6136f4

Modified Files
--------------
src/backend/utils/adt/array_typanalyze.c |   63 +++++++++++++++++++++---------
1 files changed, 44 insertions(+), 19 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2012-03-04 21:03:47
Subject: pgsql: Remove useless "rough estimate" path frommcelem_array_contained
Previous:From: Magnus HaganderDate: 2012-03-04 11:27:03
Subject: pgsql: Add function pg_xlog_location_diff to help comparisons

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group