| From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix oversized memory allocation in Parallel Hash Join |
| Date: | 2024-01-07 07:30:13 |
| Message-ID: | E1rMNbp-000Hqp-Vs@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2a67b5a60ee68892bb028587ddc6de7650822480
Modified Files
--------------
src/backend/executor/nodeHash.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alexander Korotkov | 2024-01-07 07:33:07 | pgsql: Fix oversized memory allocation in Parallel Hash Join |
| Previous Message | Alexander Korotkov | 2024-01-07 07:29:46 | pgsql: Fix oversized memory allocation in Parallel Hash Join |