Jul 2023

2 commits
Add indisreplident to fields refreshed by RelationReloadIndexInfo()
14 Jul 2023Michael Paquiermaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16beta3REL_15_STABLE15.4REL_14_STABLE14.9REL_13_STABLE13.12+2 more
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #92 of 3 reviewers saw the final version

The commit retains exactly the indisreplident assignment from #9 in src/backend/utils/cache/relcache.c, omitting the t_self refresh and both regression-test hunks. This implements the narrowed scope advocated in #10 and #14.

  • Robert Haassaw the final versiontrailerIn #10, he endorsed refreshing indisreplident and questioned refreshing t_self, directly supporting the subset that landed.
  • Dilip Kumarsaw an earlier versiontrailerHe identified the partial reload mechanism in #6 and examined tuple-header refresh semantics in #13, before the t_self update was dropped.
  • Michael Paquiersaw the final versiontrailerHe reviewed both additions in #11, argued for a minimal reload change in #14, and committed the final subset.
Fix updates of indisvalid for partitioned indexes
14 Jul 2023Michael Paquiermaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16beta3REL_15_STABLE15.4REL_14_STABLE14.9REL_13_STABLE13.12+2 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #32 of 2 reviewers saw the final version

The code and regression-test changes match #3 modulo rebasing, with only heap_freetuple(indTup) added after table_close() in src/backend/commands/tablecmds.c. The fresh-syscache-tuple approach and all submitted test additions are preserved.

  • Shruthi Gowdasaw the final versiontrailerIn #16, she supported separating the fixes and confirmed that validatePartitionedIndex() uniquely copied the relcache tuple for this purpose.
  • Dilip Kumarsaw the final versiontrailerHe challenged the stale-cache explanation in #4, traced the reload mechanism in #6, and agreed that relcache tuples were unsafe for catalog updates in #13.

Credits across 2 commits

Author
Michael Paquier1
Shruthi Gowda1
Reviewer
Dilip Kumar2
Michael Paquier1
Robert Haas1
Shruthi Gowda1
Reported by
Shruthi Gowda1
Committer
Michael Paquier2