@@ -1454,7 +1454,7 @@ find_cols_walker(Node *node, FindColsContext *context)
14541454 * To implement hashed aggregation, we need a hashtable that stores a
14551455 * representative tuple and an array of AggStatePerGroup structs for each
14561456 * distinct set of GROUP BY column values. We compute the hash key from the
1457- * GROUP BY columns. The per-group data is allocated in lookup_hash_entry (),
1457+ * GROUP BY columns. The per-group data is allocated in initialize_hash_entry (),
14581458 * for each entry.
14591459 *
14601460 * We have a separate hashtable and associated perhash data structure for each
@@ -1551,7 +1551,7 @@ build_hash_table(AggState *aggstate, int setno, long nbuckets)
15511551 * at all. Only columns of the first two types need to be stored in the
15521552 * hashtable, and getting rid of the others can make the table entries
15531553 * significantly smaller. The hashtable only contains the relevant columns,
1554- * and is packed/unpacked in lookup_hash_entry () / agg_retrieve_hash_table()
1554+ * and is packed/unpacked in lookup_hash_entries () / agg_retrieve_hash_table()
15551555 * into the format of the normal input descriptor.
15561556 *
15571557 * Additional columns, in addition to the columns grouped by, come from two
@@ -2102,8 +2102,6 @@ initialize_hash_entry(AggState *aggstate, TupleHashTable hashtable,
21022102/*
21032103 * Look up hash entries for the current tuple in all hashed grouping sets.
21042104 *
2105- * Be aware that lookup_hash_entry can reset the tmpcontext.
2106- *
21072105 * Some entries may be left NULL if we are in "spill mode". The same tuple
21082106 * will belong to different groups for each grouping set, so may match a group
21092107 * already in memory for one set and match a group not in memory for another
0 commit comments