Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x2hZt-005viZ-08 for pgsql-hackers@arkaria.postgresql.org; Sat, 05 Sep 2026 04:00:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x2hZs-00AUe6-0C for pgsql-hackers@arkaria.postgresql.org; Sat, 05 Sep 2026 04:00:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x2hZr-00AUdx-1c for pgsql-hackers@lists.postgresql.org; Sat, 05 Sep 2026 04:00:27 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x2hZp-000000044rA-2yY0 for pgsql-hackers@postgresql.org; Sat, 05 Sep 2026 04:00:26 +0000 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-cc1d57602e8so1546301a12.3 for ; Fri, 04 Sep 2026 21:00:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1788580823; x=1789185623; darn=postgresql.org; h=user-agent:in-reply-to:content-disposition:content-type :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=EZBeyKtVFuGUSOgliJu8qq0fL8v5uKcgcgyIR5mVzEs=; b=AECV1dVzqNos2o8Gb+/dt28YEIp8GMbUPwkd3ULW1K1LD1pibejvLoE6VsPNIM4w5k IS8D/A1i/SfBWQRz1RbzepiLMBZDFpd5rJydeBvD6cuw/4BsVMCAJM+loZBDYgFTBlBw vpSsaplxAt3UuXfHIC5wuNapNRMcZOaCFotrM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788580823; x=1789185623; h=user-agent:in-reply-to:content-disposition:content-type :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=EZBeyKtVFuGUSOgliJu8qq0fL8v5uKcgcgyIR5mVzEs=; b=b3fg488z3kXedotQqjncMhZlHtHpW4ebqPf/fXTrYQsp8dzt/9XGkvAsyL+AOxNaQY a1dQLynmcpmv/8nZ3//S18ogIwijM81R3J9T1uYk1SYJp34Vd9Tujh0frMqDoeEJXpSK uYQHtD+QAMvsXaZQkUe5kLCW6mMVW0ybfZ8PUHMFzveU7k6CCIMTMh9uBnuoUzrMmC3t Nlvzw2hK1Oiu74nhZC2bF2Oa2dIw+14q6JXnQQSV06ydpggnuSfB2JoUp7YHP0hhKUTa AYNyO4obHWOKxHLv/5oVRjIUlrR+z/dXUbURW30V8vl15Wo3WQrrDvzgGBs5iT8snTQS 3fnQ== X-Forwarded-Encrypted: i=1; AKwUvBz2fgF8dlo9I69B7SG6khHISUyOO8b0094rsxy7Jdj0z2hz4+QNb0Yjp8xawzOQwJbv24JISdIRw5P731rI@postgresql.org X-Gm-Message-State: AFuF++nN5TpdQXql+fcVop9yEyjrZQGLWpfP2QnZKBcxHg0/lEKuqEdU q8rk+Mdr8QZoAqAeuNRBN3WULgGt8OHR0c0EI7A4RH1+sn6pczf4U7oD+ecEQnEtkQ== X-Gm-Gg: AYBFou3/jIPeKXuQjuhDoOfVC134rY/Dpyz6EbfN3f81naparbugYeHlJ9zX4bLT1s1 7+J9PbyMCxtK1AkdiU9M2Dg87NawPa9SutaI/w2eJtfwKH8LrufRZdFZbSFktPO6CgwP+gx87jq n2Gjcwc7kF3un7H30RgVWYtJrCDor3scQQvlAgeM9xyJ0FcCRqu+LIS9H6f6f1sRZhCQ5xV1iFK +lRxe7sjQidezCxHMCOLjBQd2Mz8gYpQERpw9gVN0tZ9phSRowUW/fabJG2WBbdQQdUztMSiD1+ ssekHZMHixtU+AVjVUhar1eYleQ3ZmL/DWnGkAtWBaYRSa10A5+8VytNTHMS3JxY8W5q3bWocRy QjTfOMq2Yxuk2dj+pJWSjvE3cnEk/9QxJAgUxsQuj+djzO23gGqqsg/ZKzwSS4jKeoSrzaHuHuA SfOpfm2Mp4sOcpXLbWpFkmx4vl7U6OmwMEVzXhHcYrEU4/VsJYKUSdWf4RjR4XwRn09MRoZemPV eVR0EfgZdANk18Qdp+iX1LEQi3vQc4= X-Received: by 2002:a05:6a21:9103:b0:3d3:ae40:51e6 with SMTP id adf61e73a8af0-3da3a104fefmr15253521637.26.1788580822992; Fri, 04 Sep 2026 21:00:22 -0700 (PDT) Received: from microsoft.com (c-73-15-160-255.hsd1.ca.comcast.net. [73.15.160.255]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339b9f68e4sm10932816eec.24.2026.09.04.21.00.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2026 21:00:22 -0700 (PDT) Date: Fri, 4 Sep 2026 21:00:20 -0700 From: Noah Misch To: Masahiko Sawada Cc: Ajin Cherian , Amit Kapila , PostgreSQL mailing lists Subject: Re: Add support for COPY TO in tablesync for partitioned tables. Message-ID: <20260905040020.57.noahmisch@microsoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.3.0 (2026-01-25) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.