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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: fc5eb3f69a32f1bc5109576f5725dbdc33cdc1ca
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-11-08T19:24:38Z
Releases: 8.2.0
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.

Files

PathChange+/−
src/backend/utils/adt/arrayfuncs.c modified +8 −10
src/include/utils/array.h modified +3 −8