Nov 2020

1 commit
Plug memory leak in index_get_partition
7 Nov 2020Alvaro Herreramaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13.1+1 more
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #12 of 2 reviewers saw the final version

The commit exactly matches the first patch in #1: src/backend/catalog/partition.c frees idxlist before returning InvalidOid and reuses partIdx in get_partition_parent(). It omits the second patch's get_rel_relispartition() conversion, which Michael Paquier opposed because it could mask locking errors #2.

  • Michael Paquiersaw the final versiontrailerMichael examined callers and the leak's impact, supported backpatching the fix, and rejected the separate cleanup for weakening defensive error detection #2; the committed fix is unchanged.
  • Alvaro Herrerasaw the final versioncommittercommitted the patch

Credits across 1 commit

Author
Justin Pryzby1
Reviewer
Alvaro Herreracommitter1
Michael Paquier1
Committer
Alvaro Herrera1