model-writtenrun 338 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ajin Cherian proposed using direct COPY TO during initial synchronization of partitioned tables in #1, benefiting publications using publish_via_partition_root while retaining the existing restrictions for row filters and generated columns.
- Amit Kapila requested evidence for the performance claim in #2, and Ajin cited earlier COPY benchmarks in #3; Masahiko Sawada then requested measurements specifically for logical replication in #4.
- Ajin reported a roughly 7% reduction in synchronization time for ten small tables in #5, with diminishing benefits for larger tables; Masahiko independently obtained similar results and approved the patch in #6.
- Masahiko committed #1 without code changes as 266543a620 and announced the landing in #7.
- Noah Misch reported in #8 that PostgreSQL 18 publishers could no longer synchronize partitioned tables to PostgreSQL 19 subscribers because direct COPY lacked a publisher-version check; he also recommended retaining the new rejection of foreign-table partitions because the previous behavior failed to replicate subsequent changes.
- Masahiko agreed and supplied #9, restricting direct COPY of partitioned tables to publishers running PostgreSQL 19 or later and falling back to COPY over SELECT for older publishers; Noah approved this fix in #10.
- Masahiko committed the fix unchanged as 11fb89fdbd, backpatched it to PostgreSQL 19, and confirmed completion in #11, leaving no attached patch outstanding.