pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: nageshdbaa@gmail.com
Subject: BUG #19105: Parallel Hash Join crash when work_mem is small
Date: Sat, 08 Nov 2025 22:01:45 +0000
Message-ID: <19105-7516b55f7ed3a241@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      19105
Logged by:          Nagesh Ka
Email address:      nageshdbaa@gmail.com
PostgreSQL version: 16.2
Operating system:   Ubuntu 22.04 x86_64
Description:        

PostgreSQL version: 16.2 (Ubuntu 22.04 x86_64)
Compiled by gcc (Ubuntu 11.4.0)
work_mem = 1MB
max_parallel_workers_per_gather = 4

CREATE TABLE t1 AS SELECT i, md5(i::text) AS txt FROM
generate_series(1,1000000) i;
CREATE TABLE t2 AS SELECT i, md5(i::text) AS txt FROM
generate_series(1,1000000) i;

SET work_mem = '1MB';
SET max_parallel_workers_per_gather = 4;

SELECT t1.i, count(*)
FROM t1 JOIN t2 USING(i)
GROUP BY t1.i;

-->Expected Result

Query should complete successfully and return a count for each key.

-->Observed Result

Server terminates with:

ERROR:  could not attach to dynamic shared area
DETAIL:  invalid dsa_handle



view thread (5+ messages)  latest in thread

Message-ID: <19105-7516b55f7ed3a241@postgresql.org>
Permalink:  ../19105-7516b55f7ed3a241@postgresql.org/
Also on:    postgresql.org/message-id/19105-7516b55f7ed3a241@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, nageshdbaa@gmail.com
  Subject: Re: BUG #19105: Parallel Hash Join crash when work_mem is small
  In-Reply-To: <19105-7516b55f7ed3a241@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox