Re: pgsql: Improve accounting for memory used by shared hash tables

From: Tomas Vondra <tomas(at)vondra(dot)me>
To: David Rowley <dgrowleyml(at)gmail(dot)com>, Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Improve accounting for memory used by shared hash tables
Date: 2025-04-03 23:43:24
Message-ID: db61d8c1-7a27-4576-be37-740632a7e020@vondra.me
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On 4/4/25 00:57, David Rowley wrote:
> On Thu, 3 Apr 2025 at 04:16, Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org> wrote:
>> Improve accounting for memory used by shared hash tables
>
> I've not looked into why, but this is causing an issue in the
> join_rel_hash during add_join_rel(). See the attached script.
>
> ERROR: pfree called with invalid pointer 0x60a15edc44e0 (header
> 0x0000002000000008)
>

Thanks for the report and reproducer. I'll take a look tomorrow.

--
Tomas Vondra

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2025-04-04 00:41:40 Re: pgsql: Improve accounting for memory used by shared hash tables
Previous Message David Rowley 2025-04-03 22:57:24 Re: pgsql: Improve accounting for memory used by shared hash tables