Free indexed_tlist memory explicitly within set_plan_refs()

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Free indexed_tlist memory explicitly within set_plan_refs()
Дата
Msg-id CAM3SWZS+CauzbiCEcg-GdE6K6ycHE_Bz6Ksszy8AoixcMHOmsA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Free indexed_tlist memory explicitly within set_plan_refs()  (Michael Paquier <michael.paquier@gmail.com>)
Re: Free indexed_tlist memory explicitly within set_plan_refs()  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
While trying to fix a largely unrelated bug, I noticed that the new
build_tlist_index() call for the "excluded" targetlist (used by ON
CONFLICT DO UPDATE queries) does not have its memory subsequently
freed by the caller. Since every other call to build_tlist_index()
does this, and comments above build_tlist_index() encourage it, I
think the new caller should do the same.

Attached patch adds such a pfree() call.
--
Peter Geoghegan

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: problems on Solaris
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Run pgindent now?