Feb 2019

4 commits
Plug leak in BuildTupleHashTable by creating ExprContext in correct context.
9 Feb 2019Andres Freundmaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+2 more
LLM analysis, 100% surelanded as postedfrom patchset #7

The first patch in #7 and the commit have identical before-and-after execGrouping.c blob identities, despite different diff alignment. Both create a standalone expression context inside tablecxt and pass NULL to ExecBuildGroupingEqual().

simplehash: Add support for resetting a hashtable's contents.
9 Feb 2019Andres Freundmaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+2 more
LLM analysis, 100% surelanded as postedfrom patchset #7

The second patch in #7 has the same diff in src/include/lib/simplehash.h, adding SH_RESET to clear entries and reset the member count without freeing storage.

Allow to reset execGrouping.c style tuple hashtables.
9 Feb 2019Andres Freundmaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+2 moreAlso in: BUG #15486: PG11 jit on 50x slower than jit off
LLM analysis, 100% surelanded as postedfrom patchset #7

The third patch in #7 matches modulo rebase, adding BuildTupleHashTableExt(), its compatibility wrapper and ResetTupleHashTable() in execGrouping.c and executor.h. The other linked thread, thread #68745, has no competing patchset.

Reset, not recreate, execGrouping.c style hashtables.
9 Feb 2019Andres Freundmaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+2 moreAlso in: BUG #15486: PG11 jit on 50x slower than jit off
LLM analysis, 100% surelanded as postedfrom patchset #7

The fourth patch in #7 matches the commit modulo rebase, converting nodeAgg.c, nodeRecursiveunion.c, nodeSetOp.c and nodeSubplan.c to reset existing hash tables. The other linked thread, thread #68745, has no patchsets; this thread supplies the matching implementation.

Credits across 4 commits

Author
Andres Freund4
Reported by
Dmitry Marakasov3
Jakub Janeček2
Committer
Andres Freund4