Re: Fix memory leak in gist_page_items() of pageinspect - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Fix memory leak in gist_page_items() of pageinspect
Date
Msg-id 9A53692D-2C50-43C5-8F4E-A9F1EFF0A267@yesql.se
Whole thread Raw
In response to Re: Fix memory leak in gist_page_items() of pageinspect  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Fix memory leak in gist_page_items() of pageinspect
List pgsql-hackers
> On 12 Dec 2025, at 11:27, Heikki Linnakangas <hlinnaka@iki.fi> wrote:

> If we're going to bother changing this at all, let's consider reusing the buffer. So instead of
initStringInfo()+pfreeon every tuple, allocate it once and use resetStringInfo(). 

+1

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Fix memory leak in gist_page_items() of pageinspect
Next
From: Anthonin Bonnefoy
Date:
Subject: Propagate XLogFindNextRecord error to callers