pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Ajin Cherian <itsajin@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: Add support for COPY TO in tablesync for partitioned tables.
Date: Fri, 4 Sep 2026 21:00:20 -0700
Message-ID: <20260905040020.57.noahmisch@microsoft.com> (raw)
In-Reply-To: <CAD21AoAcycaLmudwfxoNMgfuQkS2Xyu-8rnrkvvNtKNosVo9tw@mail.gmail.com>
References: <CAFPTHDY=w+xmEof=yyjhbDzaLxhBkoBzKcksEofXcT6EcjMbtQ@mail.gmail.com>
	<CAA4eK1LQmAA2VHpygJ7PtrWEChW-Zvk44fA-ecqmCPOPah21yQ@mail.gmail.com>
	<CAFPTHDYNdgca-sJq7rEyFtaYU4C-Rcc7uXMu+eUzis+qsAY_-Q@mail.gmail.com>
	<CAD21AoDVuFensxY8D9fnkaK2_igbKS9LxY8J2rTykns1CJ+0KA@mail.gmail.com>
	<CAFPTHDawc_E0vYDa0VQnWc2d52e3G2CQFYP+s2gJ=GSv8YT8Uw@mail.gmail.com>
	<CAD21AoAGwGg=9BJvDO=bEuFODQjWsNCjZ9Hb7JKE9WS6qPJuMQ@mail.gmail.com>
	<CAD21AoAcycaLmudwfxoNMgfuQkS2Xyu-8rnrkvvNtKNosVo9tw@mail.gmail.com>

On Thu, Nov 20, 2025 at 03:09:36PM -0800, Masahiko Sawada wrote:
> Pushed.

This became commit 266543a.  It doesn't account for the publisher version, so
replicating v18->v19 w/ publish_via_partition_root fails at tablesync w/
"ERROR: cannot copy from partitioned table".

I think commit 266543a also changes the behavior w/ foreign table partitions.
A v19 subscriber will fail w/ "cannot copy from foreign table", whereas an
older subscriber would have completed tablesync but handled no further foreign
table changes.  This consequence of 266543a is a net good, since the v18
subscriber behavior is mostly a bug.  Let's keep it.  If someone really needs
the v18 subscriber behavior, adding a no-op row filter achieves that.






view thread (11+ messages)  latest in thread

Message-ID: <20260905040020.57.noahmisch@microsoft.com>
Permalink:  ../20260905040020.57.noahmisch@microsoft.com/
Also on:    postgresql.org/message-id/20260905040020.57.noahmisch@microsoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: noah@leadboat.com, sawada.mshk@gmail.com, itsajin@gmail.com, amit.kapila16@gmail.com
  Subject: Re: Add support for COPY TO in tablesync for partitioned tables.
  In-Reply-To: <20260905040020.57.noahmisch@microsoft.com>
  References: <CAFPTHDY=w+xmEof=yyjhbDzaLxhBkoBzKcksEofXcT6EcjMbtQ@mail.gmail.com> <CAA4eK1LQmAA2VHpygJ7PtrWEChW-Zvk44fA-ecqmCPOPah21yQ@mail.gmail.com> <CAFPTHDYNdgca-sJq7rEyFtaYU4C-Rcc7uXMu+eUzis+qsAY_-Q@mail.gmail.com> <CAD21AoDVuFensxY8D9fnkaK2_igbKS9LxY8J2rTykns1CJ+0KA@mail.gmail.com> <CAFPTHDawc_E0vYDa0VQnWc2d52e3G2CQFYP+s2gJ=GSv8YT8Uw@mail.gmail.com> <CAD21AoAGwGg=9BJvDO=bEuFODQjWsNCjZ9Hb7JKE9WS6qPJuMQ@mail.gmail.com> <CAD21AoAcycaLmudwfxoNMgfuQkS2Xyu-8rnrkvvNtKNosVo9tw@mail.gmail.com> <20260905040020.57.noahmisch@microsoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox