Re: GIN amcheck leaks memory in gin_check_parent_keys_consistency

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: GIN amcheck leaks memory in gin_check_parent_keys_consistency
Date: 2026-07-06 00:33:35
Message-ID: akr33zTDm1rsSPbq@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jul 03, 2026 at 01:14:12PM +0500, Kirill Reshke wrote:
> I have 34GB GIN index where this allocation is frequent in amcheck. I
> confirmed this using gdb sampling. I can maybe create synthetic
> example, but have little time right now...

The leak is apparent here, even with a memory context embedded in the
function call, so applied down to v18 where this stuff has been
introduced.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-07-06 00:52:42 Re: Clear base backup progress reporting on error
Previous Message Tom Lane 2026-07-05 23:40:50 Re: Clear base backup progress reporting on error