Add support for COPY TO in tablesync for partitioned tables.

From: Ajin Cherian <itsajin(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Add support for COPY TO in tablesync for partitioned tables.
Date: 2025-11-11 03:08:52
Message-ID: CAFPTHDY=w+xmEof=yyjhbDzaLxhBkoBzKcksEofXcT6EcjMbtQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

After patch [1] was committed, the COPY TO command is now supported
for partitioned tables. This change updates the tablesync logic to use
COPY TO for partitioned tables as well. This change will only be
invoked when the publication is configured with
publish_via_partition_root = true;
otherwise, partitioned tables will continue to be published using
their underlying partitions by default and publishing using partitions
already use COPY TO.

[1] - https://github.com/postgres/postgres/commit/4bea91f21f61d01bd40a4191a4a8c82d0959fffe

regards,
Ajin Cherian
Fujitsu Australia

Attachment Content-Type Size
v1-0001-Support-for-COPY-TO-for-partitioned-tables-in-tab.patch application/octet-stream 1.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2025-11-11 03:11:32 Re: Make PQgetResult() not return NULL on out-of-memory error
Previous Message Amit Kapila 2025-11-11 03:06:46 Re: Newly created replication slot may be invalidated by checkpoint