• Tom Lane's avatar
    Fix planner to make a reasonable assumption about the amount of memory space · 22d9ddbb
    Tom Lane authored
    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.
    22d9ddbb
clauses.c 128 KB