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


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to