Обсуждение: pgsql: Avoid integer overflow in the loop that extracts histogram

Поиск
Список
Период
Сортировка

pgsql: Avoid integer overflow in the loop that extracts histogram

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/commands:
        analyze.c (r1.135 -> r1.136)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/analyze.c?r1=1.135&r2=1.136)