OSDN Git Service

Tweak accumArrayResult() to double the size of its working arrays when
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Nov 2006 19:24:38 +0000 (19:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Nov 2006 19:24:38 +0000 (19:24 +0000)
commitfc5eb3f69a32f1bc5109576f5725dbdc33cdc1ca
tree462e5fc49f29a9e48e442ac423995257176a1d13
parenta5cf12e2ef775abf4cfe7dee50d2c065047e19a0
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.
src/backend/utils/adt/arrayfuncs.c
src/include/utils/array.h