Tweak accumArrayResult() to double the size of its working arrays when
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/arrayfuncs.c | modified | +8 −10 |
| src/include/utils/array.h | modified | +3 −8 |