Re: [COMMITTERS] pgsql: We no longer need to palloc the VacuumStmt node; keeping it on

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [COMMITTERS] pgsql: We no longer need to palloc the VacuumStmt node; keeping it on
Дата
Msg-id 20070323215740.GE4507@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: We no longer need to palloc the VacuumStmt node; keeping it on  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> alvherre@postgresql.org (Alvaro Herrera) writes:
> > We no longer need to palloc the VacuumStmt node; keeping it on the stack is
> > simpler.
> 
> If you're going to do that, you should at least set the nodeTag so that
> the struct appears valid to onlookers.  A memset wouldn't be out of
> place either to make sure that any uninitialized fields behave sanely.

Done, thanks.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: EXISTS optimization
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: EXISTS optimization