May 2025

1 commit
relcache: Avoid memory leak on tables with no CHECK constraints
11 May 2025Álvaro Herreramaster18beta2REL_19_STABLE18beta2REL_18_STABLE18beta2
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

The commit implements Álvaro Herrera's inline fix in #6, making CheckNNConstraintFetch() in src/backend/utils/cache/relcache.c allocate the check array only when ncheck > 0. It also incorporates Tom Lane's explicit check = NULL alternative from #7; the committer wrote the fix, and no patchset was attached.

  • Tom Lanesaw the final versiontrailerTom reviewed the inline fix and requested explicit NULL initialization in #7, which appears in the committed version.

Credits across 1 commit

Reviewer
Tom Lane1
Reported by
Yasir1
Committer
Alvaro Herrera1