pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix oversized memory allocation in Parallel Hash Join
Date: Sun, 07 Jan 2024 07:33:07 +0000
Message-ID: <E1rMNed-000HsR-IE@gemulon.postgresql.org> (raw)

Fix oversized memory allocation in Parallel Hash Join

During the calculations of the maximum for the number of buckets, take into
account that later we round that to the next power of 2.

Reported-by: Karen Talarico
Bug: #16925
Discussion: https://postgr.es/m/16925-ec96d83529d0d629%40postgresql.org
Author: Thomas Munro, Andrei Lepikhov, Alexander Korotkov
Reviewed-by: Alena Rybakina
Backpatch-through: 12

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/714a987bc1333121bb83415f764076c8e7e8d8fb

Modified Files
--------------
src/backend/executor/nodeHash.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)



view thread (6+ messages)

Message-ID: <E1rMNed-000HsR-IE@gemulon.postgresql.org>
Permalink:  ../E1rMNed-000HsR-IE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rMNed-000HsR-IE@gemulon.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-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix oversized memory allocation in Parallel Hash Join
  In-Reply-To: <E1rMNed-000HsR-IE@gemulon.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