model-writtenrun 4647 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jul 2022 - Feb 2023 · 13 entries
- Önder Kalacı proposed using subscriber indexes for REPLICA IDENTITY FULL, combining index scans with full-tuple comparisons and planner-based index selection; his example reduced replication catch-up from roughly 300 seconds to 5 seconds #1.
- Amit Kapila preferred automatic index selection over per-table user configuration and recommended standard planner path construction and costing, which Önder adopted through make_one_rel() and set_cheapest() #5 #8 #9.
- Önder added mixed expression-and-column index handling, then demonstrated that existing ANALYZE/VACUUM relcache invalidation already refreshed the cached index choice #10 #11.
- Amit requested explicit eligibility restrictions and questioned costing bitmap paths when execution used ordinary index scans; subsequent revisions rejected partial and expression-only indexes, removed bitmap choices, and expanded partitioned and inherited-table tests #13 #14 #17 #18.
- Shi yu found that nullable index keys failed to locate rows, leading Önder to add SK_SEARCHNULL and restrict supported access methods to btree #19 #20.
- Peter Smith and Kuroda Hayato reviewed naming, helper organization, comments, and tests, and their documentation requests led to a description of subscriber index eligibility in the logical-replication manual #29 #30 #38 #39 #42.
- Kuroda identified unnecessary retained index locks and missing Meson registration, and further reviews added CREATE/DROP INDEX invalidation and enable_indexscan behavior tests #44 #45 #47 #49.
- Shi yu then demonstrated that treating every unique index like a primary key could select the wrong NULL-containing tuple, so the equality-check shortcut was restricted to primary-key and replica-identity indexes #53 #54.
- After test cleanup, Önder rebased the patch, reported additional manual testing with PostgreSQL 15 replication features, and later repaired upstream API changes during another rebase #59 #61.
- Tom Lane challenged the hybrid planner/executor complexity, while Andres Freund defended the existing fast execution path and clarified duplicate-row behavior; Marco Slot subsequently explained why nonunique subscriber indexes mattered for tables that legitimately contain duplicates #62 #64 #65 #66.
- Amit argued that planner maintenance costs outweighed the benefit for this feature, and Önder replaced planner-based selection with the first eligible index from the relation's index list #68 #69.
- Shi yu's benchmarks exposed regressions for duplicate-heavy data, prompting Önder to submit a separate subscription-level enable_index_scan option #74 #78.
- Amit preferred a table storage parameter, while Andres opposed disabling the improvement by default because repeated sequential scans could be dramatically worse #80 #82 #83.
Mar 2023 · 16 entries
- Profiling by Önder and Shi yu traced the duplicate-heavy slowdown to repeated index-to-heap visits for dead tuples, with Amit explaining why those visits could exceed sequential-scan costs #86 #87 #88.
- The next review cycle corrected error reporting, added differing-publisher/subscriber-data coverage, removed obsolete planner-era allocation machinery, and introduced a shared eligibility helper suggested by Kuroda #89 #92 #100 #101 #105.
- Önder implemented the proposed table storage option and moved partition index discovery out of the long-lived cache context, while the debate over whether an opt-out was necessary continued #111 #120 #121.
- Amit supplied a fix-up patch for cache validity and comments, and Önder incorporated it while eliminating redundant partition lookups and passing localindexoid directly through apply handlers #124 #130.
- Peter's example with distinct replica-identity and primary-key indexes exposed a changed helper result, leading to a correction that compared both index identities independently #107 #125 #132.
- Shi yu demonstrated that selecting an index on subscriber-only columns could provide no useful filtering, while Hou Zhijie explored avoiding full-tuple comparisons for suitable non-PK unique indexes #135 #140 #141.
- At Amit's request, Önder supplied incomplete optimization prototypes for column eligibility and non-PK unique indexes, keeping them separate from the main patch #146 #162.
- Peter found that the core patch's tests depended on the optional-control patch; Amit postponed that option and rejected retaining enable_indexscan as a substitute, so Önder removed both from the core submission #151 #160 #163.
- Test-runtime reviews from Vignesh and Amit prompted consolidation, which exposed an existing dropped-column bug in tuples_equal(); Önder temporarily added a prerequisite fix, then moved the bug to a separate thread at Amit's request #147 #154 #166 #171 #173.
- Amit proposed requiring the index's leftmost column to be supplied by the publisher, and Önder added that eligibility rule while removing the separately tracked dropped-column fix and dependent tests #165 #176.
- Hou, with Shi yu's help, found that the new rule confused publisher and subscriber column positions and supplied an AttrMap-based correction, which Önder incorporated into the main patch; the broader unique-index optimization remained separate #180 #181.
- Amit supplied further test reductions to bring runtime closer to other subscription tests, and Önder retained a focused DROP INDEX case to verify cache invalidation without additional statistics polling #182 #183 #185.
- Amit simplified the remaining helper and test formatting, Shi yu supplied final assertion and comment feedback, and Vignesh's last review led to the final attached patch #186 #187 #189 #192 #193.
- Amit committed the implementation, documentation, and Meson registration from the final patch with light editorial changes as 89e46da5e5, then reported that he had accidentally omitted the new test file #193 #194.
- The omitted TAP file from the same final patch landed separately as 805b821e77, with only testcase-heading edits, completing the feature's implementation and test landing #193.
- After landing, Amit still favored a storage or subscription opt-out for cases where index scans were slower, while Önder and Andres remained unconvinced; Amit closed the commitfest entry but left that optional control open for future discussion #195 #196.