model-writtenrun 4205 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Shruthi Gowda reported that attaching a partitioned index to a replica-identity parent index inside one transaction raised an invisible-tuple error, and identified stale indisreplident and tuple-location information in the relcache #1.
- Michael Paquier reproduced the failure and initially suspected a missing command-counter increment #2, then traced the catalog update to a stale relcache tuple and submitted a syscache-based fix with two-level partition tests #3.
- Dilip Kumar questioned why invalidation had not refreshed the entry #4 and traced the behavior to RelationReloadIndexInfo(), which partially reloads an open index and marks its cache entry valid #6.
- Robert Haas raised separate concerns about inadequate CREATE INDEX ONLY documentation #7 and replica-identity index locking #8; Michael noted that the parent table's exclusive lock provides protection while acknowledging the unusual locking convention #12.
- Shruthi submitted a separate patch refreshing both indisreplident and t_self during index-cache reloads #9; Robert endorsed the indisreplident correction but questioned whether callers should rely on cached tuple headers at all #10.
- Michael argued that catalog updates must use fresh syscache tuples regardless of the reload fix #11, and, after Dilip asked about documenting or strengthening the cache invariant #13, favored keeping the reload mechanism minimal rather than refreshing additional header fields without a demonstrated need #14.
- Michael proposed landing two independent fixes and reported that existing backend consumers already read indisreplident through the syscache #15; Shruthi agreed with the split and confirmed the unusual relcache use in partitioned-index validation #16.
- The syscache patch from #3 landed as 38ea6aa90e, preserving its regression tests and adding cleanup of the copied tuple.
- Only the indisreplident assignment from #9 landed as a5ea825f95, leaving out the disputed t_self refresh and its attached tests; the commit also protects potential out-of-core users of the cached field.
- Michael closed the thread by confirming that both fixes had been applied across the supported stable branches #17; the documentation, locking, and cache-invariant documentation suggestions had no further resolution recorded in this thread.