Use "COPY table TO" for partitioned tables in initial table synchronization.
Masahiko Sawada <msawada@postgresql.org>
Author:
Masahiko Sawada <msawada@postgresql.org>
Date: 2025-11-20T22:50:27Z
Releases:
19 (unreleased)
Use "COPY table TO" for partitioned tables in initial table synchronization. Commit 4bea91f added support for "COPY table TO" with partitioned tables. This commit enhances initial table synchronization in logical replication to use "COPY table TO" for partitioned tables if possible, instead of "COPY (SELECT ...) TO" variant, improving performance. Author: Ajin Cherian <itsajin@gmail.com> Discussion: https://postgr.es/m/CAFPTHDY=w+xmEof=yyjhbDzaLxhBkoBzKcksEofXcT6EcjMbtQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/logical/tablesync.c | modified | +3 −2 |
Discussion
- Add support for COPY TO in tablesync for partitioned tables. 7 messages · 2025-11-11 → 2025-11-20