model-writtenrun 2545 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sergey Tatarintsev reported that subscriptions using origin=none and copy_data=on could miss warnings when a published partitioned root contained subscribed partitions, and supplied reproducer tests covering partition publications and foreign partitions in #1.
- Vignesh confirmed the partition-warning bug and noted that foreign-table replication was unsupported in #2, while Sergey argued for rejecting foreign-partition publications and highlighted a race between checking origins and copying data in #3.
- Vignesh's first implementation introduced a new SQL-callable publication helper to include partitions in #4; Sergey then demonstrated that subscribed ancestors also mattered and suggested combining pg_partition_tree() with pg_partition_ancestors() in #5.
- Amit requested matching documentation and FOR ALL TABLES coverage and warned that catalog changes prevented backpatching in #6; Vignesh extended the helpers to ancestors and all-table publications and updated the documentation across #7 and #8.
- Hou replaced the catalog-changing approach with existing partition functions in the origin-check query and documentation in #9, providing a backpatchable fix and explicitly leaving foreign partitions for separate work.
- Shlok added a regression test in #10, Sergey requested ancestor coverage in #11, and Amit agreed to separate the foreign-partition issue in #12.
- After reporting successful HEAD testing and identifying PostgreSQL 16 and 17 as the relevant back branches in #13, Shlok supplied branch-specific patches in #14; Hou's review in #15 then led to removing the unnecessary test schema and adding ancestor coverage in #17.
- Sergey reported that concurrent publication changes could defeat the warning check in #18, but Amit recommended leaving that race unchanged in #19 because stronger synchronization would complicate a best-effort warning, especially in back branches.
- Sergey moved the foreign-partition work to a separate thread in #20, leaving the current patch focused on partition ancestry and descendant checks.
- Vignesh requested a more convenient documented query, an A-to-B-to-C replication topology, and explanatory test comments in #21, which Shlok incorporated in #22.
- Hou found the updated patches mostly satisfactory but requested consistent publication and subscription names in #23; Shlok's final submission #24 applied that cleanup, combined implementation and tests, and revised the commit message after off-list discussion.
- Amit committed the combined fix as 1c2a2354c3 shortly after #24, crediting Hou and Shlok as authors and backpatching through PostgreSQL 16; the available evidence supports an unchanged landing, although the final attachment is unavailable for exact comparison, and foreign-partition handling and the concurrency race remained outside this fix.