Jul 2024

2 commits
Add missing pointer dereference in pg_backend_memory_contexts view
28 Jul 2024David Rowleymaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Tom Lane reported the invalid pointer test in #38, and David Rowley identified the missing dereference and promised a fix in #39; no attachment contains that fix. The commit changes the condition in src/backend/utils/adt/mcxtfuncs.c from ident to *ident == NULL.

  • Tom Lanesaw the final versionLLM analysis, 100% sureBefore the commit, Tom examined Coverity's finding and explained the pointless pointer test in #38, directly prompting the correction acknowledged in #39.
Add path column to pg_backend_memory_contexts view
25 Jul 2024David Rowleymaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #341 of 6 reviewers saw the final version

The commit preserves the path column, breadth-first traversal, one-based levels and regression queries from #34, with David confirming his adjustments and push in #36. Besides documentation, const and iteration cleanup and a catalog-version bump, it changes hash-table allocation to CurrentMemoryContext using HASH_CONTEXT in src/backend/utils/adt/mcxtfuncs.c.

  • Andres Freundsaw an earlier versiontrailerAndres requested removal of redundant parent_id, ephemeral-ID documentation and regression tests in #3, then defended avoiding recursive queries in #15, before the traversal rewrite.
  • Stephen Frostsaw an earlier versiontrailerStephen supported the path proposal and requested an aggregate-total column in #4 and #6, before substantial interface and traversal changes.
  • Atsushi Torikoshisaw an earlier versiontrailerAtsushi reviewed types, debugging output, column ordering, foreach_int usage and CTE documentation in #8, #10 and #12, before the breadth-first rewrite.
  • Michael Paquiersaw an earlier versiontrailerMichael questioned temporary integer paths and alternative representations in #13 and #16, before removal of the separate ID column and replacement of recursive traversal.
  • Robert Haassaw an earlier versiontrailerRobert discussed root-to-leaf ordering, accepted one-based levels and ultimately supported integer IDs in #22, #24 and #33, but the committed hash-allocation change followed his review.
  • David Rowleysaw the final versiontrailerDavid reviewed the design, supplied the breadth-first rewrite in #23, requested final refinements in #29, and confirmed reviewing and committing the final attachment in #36.

Credits across 2 commits

Author
Melih Mutlu1
Reviewer
Andres Freund1
David Rowley1
Michael Paquier1
Robert Haas1
Stephen Frost1
torikoshia1
Reported by
Coverity1
Tom Lane1
Committer
David Rowley2