]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix planner to make a reasonable assumption about the amount of memory space
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 14 Aug 2010 15:47:21 +0000 (15:47 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 14 Aug 2010 15:47:21 +0000 (15:47 +0000)
commita5955f4a652054bb00c11de96f90300b01ccbe27
treea3ba375f1710dde5c5e8f946f09a72de03c3ef82
parentd2945deefb9a491cd2d015aeb893f24beb5e97cb
Fix planner to make a reasonable assumption about the amount of memory space
used by array_agg(), string_agg(), and similar aggregate functions that use
"internal" as their transition datatype.  The previous coding thought this
took *no* extra space, since "internal" is pass-by-value; but actually these
aggregates typically consume a great deal of space.  Per bug #5608 from
Itagaki Takahiro, and fix suggestion from Hitoshi Harada.

Back-patch to 8.4, where array_agg was introduced.
src/backend/optimizer/util/clauses.c