Обсуждение: pgsql: Tweak accumArrayResult() to double the size of its working arrays

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

pgsql: Tweak accumArrayResult() to double the size of its working arrays

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Tweak accumArrayResult() to double the size of its working arrays when
more space is needed, instead of incrementing by a fixed amount; the old
method wastes lots of space and time when the ultimate size is large.
Per gripe from Tatsuo.

Modified Files:
--------------
    pgsql/src/include/utils:
        array.h (r1.59 -> r1.60)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/array.h.diff?r1=1.59&r2=1.60)
    pgsql/src/backend/utils/adt:
        arrayfuncs.c (r1.134 -> r1.135)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/arrayfuncs.c.diff?r1=1.134&r2=1.135)