Re: PATCH: optimized DROP of multiple tables within a transaction

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: PATCH: optimized DROP of multiple tables within a transaction
Дата
Msg-id 20130104170835.GA9191@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: PATCH: optimized DROP of multiple tables within a transaction  (Tomas Vondra <tv@fuzzy.cz>)
Список pgsql-hackers
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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: lock AccessShareLock on object 0/1260/0 is already held
Следующее
От: Robert Haas
Дата:
Сообщение: Re: enhanced error fields