Tom Lane wrote:
> Atsushi Ogawa <[EMAIL PROTECTED]> writes:
> > An attached patch uses AggState->aggcontext instead of per-tuple
> > context to allocate the data. As a result, per-tuple context is not
> > used, and the cycles of AllocSetReset is reduced.
> Why is this better than the fix already in place?

Because per-tuple context is reset many times. If per-tuple context is 
never used, the following codes of AllocSetReset become effective.

    /* Nothing to do if context has never contained any data */
    if (block == NULL)

--- Atsushi Ogawa

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?


Reply via email to