vfix-0002-adjust-hash_table_bytes-for-balancing.patch
text/x-patch
Filename: vfix-0002-adjust-hash_table_bytes-for-balancing.patch
Type: text/x-patch
Part: 2
Message:
Re: Fix overflow of nbatch
Patch
Format: format-patch
Series: patch 0002
Subject: adjust hash_table_bytes for balancing
| File | + | − |
|---|---|---|
| src/backend/executor/nodeHash.c | 1 | 0 |
From a7995c8e6a149e3444e7e48b618a117cda588770 Mon Sep 17 00:00:00 2001 From: Tomas Vondra <tomas@vondra.me> Date: Wed, 24 Sep 2025 14:32:29 +0200 Subject: [PATCH vfix 2/4] adjust hash_table_bytes for balancing --- src/backend/executor/nodeHash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c index ef589b90339..972b5b58583 100644 --- a/src/backend/executor/nodeHash.c +++ b/src/backend/executor/nodeHash.c @@ -930,6 +930,7 @@ ExecChooseHashTableSize(double ntuples, int tupwidth, bool useskew, */ nbatch /= 2; nbuckets *= 2; + hash_table_bytes *= 2; *space_allowed = (*space_allowed) * 2; } -- 2.51.0