Jul 2024

1 commit
Use pgstat_kind_infos to read fixed shared statistics
1 Jul 2024Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 99% suremodified before commitlight changesfrom patchset #12 of 2 reviewers saw the final version

The commit preserves the six statistics-kind metadata additions and replacement of explicit reads with a loop from #1. Committer edits adjust the equivalent loop bounds and type, use pgstat_get_kind_info(), add a shared_ctl_off assertion, and refine comments and field placement in src/include/utils/pgstat_internal.h, consistent with #9.

  • Andres Freundsaw the final versiontrailerAndres supported the approach and questioned whether storage order required a statistics-format version bump #6; only light changes followed.
  • Michael Paquiersaw the final versiontrailerMichael endorsed removing duplicated ordering #2, verified unchanged read order #8, and committed the patch with consistency edits described in #9.

Credits across 1 commit

Author
Tristan Partin1
Reviewer
Andres Freund1
Michael Paquier1
Committer
Michael Paquier1