Re: BUG #19105: Parallel Hash Join crash when work_mem is small - Mailing list pgsql-bugs

From Tomas Vondra
Subject Re: BUG #19105: Parallel Hash Join crash when work_mem is small
Date
Msg-id 2bf93857-aedb-4968-aacc-2add30bea365@vondra.me
Whole thread Raw
In response to Re: BUG #19105: Parallel Hash Join crash when work_mem is small  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On 11/9/25 16:47, Tom Lane wrote:
> PG Bug reporting form <noreply@postgresql.org> writes:
>> PostgreSQL version: 16.2
> 
>> Server terminates with:
> 
>> ERROR:  could not attach to dynamic shared area
>> DETAIL:  invalid dsa_handle
> 
> I could not reproduce this problem with current sources
> (either master or v16 branch tip).  16.2 is pretty old,
> so maybe an update will fix it for you.
> 

FWIW I couldn't reproduce it on 16.2 either, even after forcing it to
actually do parallel hash join (the posted instructions were not enough
to make that happen on my system).

Presumably there's some additional detail making it fail, but there are
too many options to guess. Maybe it's some kernel limit, something in
ubuntu 22.04, or something else.

It's interesting the report claims this happens only "when work_mem is
small". I wonder if that happens simply because the plan changes.


regards

-- 
Tomas Vondra




pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #19106: Potential regression with CTE materialization planning in Postgres 18
Next
From: Thomas Munro
Date:
Subject: Re: BUG #19105: Parallel Hash Join crash when work_mem is small