On Mon, Dec 24, 2012 at 02:41:37AM +0100, Tomas Vondra wrote:
> + SMgrRelation *srels = palloc(sizeof(SMgrRelation));
> + int nrels = 0,
> + i = 0,
> + maxrels = 1;
maxrels=1 is not good -- too much palloc traffic. I'd make it start at,
say, 8 instead.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services