VALUES clause memory optimization (was: Values list-of-targetlists patch...)

Поиск
Список
Период
Сортировка
От Joe Conway
Тема VALUES clause memory optimization (was: Values list-of-targetlists patch...)
Дата
Msg-id 44D140DF.5080209@joeconway.com
обсуждение исходный текст
Ответ на 8.2 features?  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: VALUES clause memory optimization (was: Values list-of-targetlists patch...)
Список pgsql-hackers
Tom Lane wrote:
> I think we could safely list_free the input list in transformInsertRow
> as your patch suggests, which would buy back the 144M part.  But I don't
> believe it's safe at all to free the raw_parser output --- the grammar
> sometimes makes multiple links to the same subtree, eg in BETWEEN.

In transformExpr the comment implies that it should be safe to reapply
to an already transformed expression. What if we free the raw_parser
expression list/cells/nodes and replace it with the as-transformed one?

Joe




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

Предыдущее
От: Rick Gigger
Дата:
Сообщение: Re: 8.2 feature set
Следующее
От: Andreas Pflug
Дата:
Сообщение: pg_terminate_backend