May 2025

1 commit
Fix memory leakage when function compilation fails.
28 May 2025Tom Lanemaster18beta2REL_19_STABLE18beta2REL_18_STABLE18beta2
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #10 of 2 reviewers saw the final version

The commit preserves both fixes from #1: reparenting the PL/pgSQL compilation context after success and freeing newly allocated CachedFunction structs on compilation errors. It additionally moves fn_xmin, fn_tid, and dcallback initialization after successful compilation in src/backend/utils/cache/funccache.c, preventing incomplete entries from appearing valid or receiving cleanup callbacks.

  • Amul Sulsaw an earlier versionLLM analysis, 99% sureAmul called the patch reasonable and discussed backport suitability in #2, before the committed version added the cache-field initialization ordering change.
  • Pavel Stehulesaw an earlier versionLLM analysis, 90% surePavel endorsed Amul's favorable assessment with a +1 in #3, before the committed version added the cache-field initialization ordering change.

Credits across 1 commit

Author
Tom LaneLLM1
Committer
Tom Lane1

N LLM means N of the credits come from LLM analysis, not from commit trailers.