Re: Memory leak in CachememoryContext

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Memory leak in CachememoryContext
Дата
Msg-id 20230424135541.phtdpfftovykfsti@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Memory leak in CachememoryContext  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Memory leak in CachememoryContext  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2023-Apr-21, Tom Lane wrote:

> (Note to self: we can't remove the cast_hash_context field in
> back branches for fear of causing an ABI break for pldebugger.
> But we can leave it unused, I think.)

Hmm, we can leave it unused in our code, but it still needs to be
initialized to some valid memory context anyway; otherwise hypothetical
code that uses it would still crash.  This seems halfway obvious, but
since the submitted patch doesn't have this part, I thought better to
point it out.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/



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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Request for comment on setting binary format output per session
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: run pgindent on a regular basis / scripted manner