1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00

Remove stale comment and redundant assignment in BuildTupleHashTable()

Since commit bf6c614a2f, 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
This commit is contained in:
Fujii Masao
2026-09-10 16:11:38 +09:00
parent 3f2f5e7c4c
commit bd9d6ffa1a

View File

@@ -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;