postgres.git / summary / log / commit / refs
commit bd9d6ffa1aea612cc8da31f7b30d5573747b86f8
Author: Fujii Masao <fujii@postgresql.org>
Date: Thu Sep 10 07:11:38 2026 +0000
Remove stale comment and redundant assignment in BuildTupleHashTable()
Since commit bf6c614a2f2, BuildTupleHashTable() has created the table
slot unconditionally rather than on the first lookup. However, the
comment still described the old behavior, and tableslot was still
redundantly initialized to NULL before being assigned the new slot.
Remove the stale comment and redundant assignment.
Author: Tatsuya Kawata <kawatatatsuya0913@gmail.com>
Reviewed-by: Quan Zongliang <quanzongliang@yeah.net>
Discussion: https://postgr.es/m/CAHza6qfduAcYc3HdXP5DYscNstz0ic6ctHTNH70VL1Uy-nJ6zg@mail.gmail.com
src/backend/executor/execGrouping.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/backend/executor/execGrouping.c b/src/backend/executor/execGrouping.c
index feee88294aa..948aa2f177a 100644
--- a/src/backend/executor/execGrouping.c
+++ b/src/backend/executor/execGrouping.c
@@ -232,7 +232,6 @@ BuildTupleHashTable(PlanState *parent,
hashtable->tuplescxt = tuplescxt;
hashtable->tempcxt = tempcxt;
hashtable->additionalsize = additionalsize;
- hashtable->tableslot = NULL; /* will be made on first lookup */
hashtable->inputslot = NULL;
hashtable->in_hash_expr = NULL;
hashtable->cur_eq_func = NULL;