Nov 2024

1 commit
Clear padding of PgStat_HashKey when handling pgstats entries
5 Nov 2024Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.1REL_16_STABLE16.5REL_15_STABLE15.9
LLM analysis, 100% surelanded as postedfrom patchset #12 of 2 reviewers saw the final version

All three code hunks match #1 exactly: 19 insertions and two deletions in src/backend/utils/activity/pgstat.c and src/backend/utils/activity/pgstat_shmem.c. The commit retains the proposed memset calls and individual field assignments.

  • Jelte Fennema-Niosaw the final versiontrailerJelte explained why {0} does not clear padding and endorsed the patch's code and reasoning in #3, with no subsequent code changes.
  • Michael Paquiersaw the final versiontrailerMichael suggested alternative initialization in #2, confirmed the padding problem experimentally in #6, and committed the unchanged patch as reported in #8.

Credits across 1 commit

Author
Bertrand Drouvot1
Reviewer
Jelte Fennema-Nio1
Michael Paquier1
Committer
Michael Paquier1