model-writtenrun 4837 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vignesh C reported that inserts after a publisher schema rename continued reaching the subscriber's old table name and proposed a namespace-invalidation callback with a regression test in #1.
- Dilip Kumar investigated the missing invalidation and compared cursor behavior across schema renames in #3; Vignesh explained that cursors legitimately retain relation identity, whereas replication was incorrectly combining two publisher tables into one subscriber table in #4.
- The patch remained pending through successive rebases, with #5, #7, #8, and #9 adapting it to changes in test infrastructure and cache data structures.
- Tom Lane questioned the separate callback, the cost of invalidating every cached relation, and the semantics of renaming a schema within an inserting transaction in #10; Vignesh demonstrated that incorrect routing persisted after the transaction and reused the existing publication-invalidation callback in #11.
- Tom cleaned up the patch, moved its test to src/test/subscription/t/100_bugs.pl, and discovered that the renamed table received no data when he added a corresponding assertion in #12.
- Vignesh explained that refreshing the subscription's publication was needed to discover the renamed table and updated the test to expect both pre-rename and post-rename rows after that refresh in #13.
- Tom committed cd4b2334db from #13, adding an assertion that the renamed table remains empty before the refresh; in #14 he confirmed the fix had landed while leaving broader concerns about inconsistent name-versus-identity behavior unresolved.