Re: PATCH: decreasing memory needlessly consumed by array_agg - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: PATCH: decreasing memory needlessly consumed by array_agg
Date
Msg-id 20140401170409.GE9567@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: PATCH: decreasing memory needlessly consumed by array_agg  (Tomas Vondra <tv@fuzzy.cz>)
List pgsql-hackers
How much of this problem can be attributed by the fact that repalloc has
to copy the data from the old array into the new one?  If it's large,
perhaps we could solve it by replicating the trick we use for
InvalidationChunk.  It'd be a bit messy, but the mess would be pretty
well contained, I think.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: get_fn_expr_variadic considered harmful
Next
From: Tom Lane
Date:
Subject: Re: PATCH: decreasing memory needlessly consumed by array_agg