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 1wXBdg-00372t-2G for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2026 05:38:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wXBde-009JnS-2X for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2026 05:38:06 +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 1wXBde-009JnK-19 for pgsql-hackers@lists.postgresql.org; Wed, 10 Jun 2026 05:38:06 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wXBdb-00000001xZx-3qUW for pgsql-hackers@lists.postgresql.org; Wed, 10 Jun 2026 05:38:05 +0000 Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfout.phl.internal (Postfix) with ESMTP id F3443EC01E7; Wed, 10 Jun 2026 01:38:02 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Wed, 10 Jun 2026 01:38:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1781069882; x=1781156282; bh=m2OyyH9mjL HJRKzb5+j3wSZ8/b3260biwCnm5Uxk2Rw=; b=1V7lIlmH8rAPZfzwdCwNaYz+dP Xyjk/u5UGLODF21UH+YqRF7oTKZTNar6rgQdAfUKRbtckq8Y8nTmmCoNX8yQ9S2c rEpOYW61uVTt5U8kQifjoK1JUrL57KzH1Tgb/BoZoeUkasAOlGTRj2Z2KIZ+Ifwu wjtCA+62aF++8tWbYjRFUlE7ZChcrA+WS3BAX4u33wACwf2RVyptz5VhvTwGs9WF dKPZngmm8WigGxtLThZASOd9q4dsbvFjjUXerqkEi2SFPk4GtKouqQ8aB44FQaYw qgopsEp3CD+7XXJeyc4c6kV1q/EsHr+lPml+7C8EypT5zVSK6L538weki5Jw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1781069882; x=1781156282; bh=m2OyyH9mjLHJRKzb5+j3wSZ8/b3260biwCn m5Uxk2Rw=; b=d5E8R908+6yQMGi1iZKy4A6lRCov/MeQropdNm60idTXlygjXs+ lST4555unx2RgxcYB3dsfo4v7Kqe4fGrTE9wGcrb4cgLmCksIOWISDkK0WYnUx2N wHm5GzIkb/mruIdOaKRPqPQ/YHotPLLtI1RZgmmf1zsMeY7edlQFGstrGbZ55Q5L nHmFDCsqSrrmlii4dKPuje5gayHP2lpbCs9AD6ywQXy7qMCkiZUy0N8mt0U57JH5 bPLd1l6pVyyP4z05d9jNxY8v08HZkPkk4QQcIgEMJ/0gUXNU+o4ForG+KEDj4HTi WUfEwKO7NF6EsRh04GY56bn/drH8D7fjmWA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTE3TvtbIM1U+4w7QR6sNTQf06mnBgZqyvHYLzTR19TVpL5jPtzvLI/YkyVpTd4F0T uyOXmnUfcwx/hPdsQnDgWKIbgIpi5xgpfXfa7u18iDeni8IgSIgoeMSk+LwOeEZotCHrj+ VgtG68o42SyHEG91kRvQgqdq9JRIORE06XSANikb62W509haKr80HvOXzx3Op93/Scgs0a ZIA3zDTJQqgrQQKfFLBxSc/otvLT7Tz2YpuvwSmKK8RZp5tJlEr2HI2m94v+m6uiX27Ajk kcF1CHSKEURq2EFLYSdDXFeyS+GoxjMBTDEPL2zkDYAO6it8mhOdJN0Q3np8LCygSD4Cl/ FYUSIcTIMO9HKyf1/X6+M0o70tbUgOIa0JbAi/mq5jNed/NsVWZkr21+zHV1AMx9z/5/dU ui32Qp/GBMxCbACBTM55sF9PpgbfyPuKDbmzMHReiUULhS9Vo7+lMThBvGKoOD+qy3hnuC rY7oAskreQ6OS8ZvhP1CRSxBu3Dvd295cdLeAN8mRb+5Pg5Wwb6fG2j7vl7O/2D48LJRbN UucENFSRJ6OxH0T+Zu7UN9xaFGQ4tXAfVw3zM718+TxjgakAiHI9XiPB5eLnMhQEBbFSIo ulNkwerzof9l57oXrpg2TjXHnNnAf4ZC/1S3blTrxDP53pkhqhJ6MKT27A/A X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 Jun 2026 01:38:00 -0400 (EDT) Date: Wed, 10 Jun 2026 14:37:57 +0900 From: Michael Paquier To: Etsuro Fujita Cc: Nikita Malakhov , Jehan-Guillaume de Rorthais , pgsql-hackers@lists.postgresql.org Subject: Re: [(known) BUG] DELETE/UPDATE more than one row in partitioned foreign table Message-ID: References: <20250718175314.4513c00a@karst> <20250729174852.14f23557@karst> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="L5wmk/LsQK9LT5Sb" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --L5wmk/LsQK9LT5Sb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jun 05, 2026 at 08:59:17PM +0900, Etsuro Fujita wrote: > I created the patch to add that support on top of the patch I sent in > a previous email, which I'm attaching along with the base patch. It's > the same as before, except that I fixed a typo in docs pointed out by > Michael-san off-list. Splitting the patch set into two pieces, as of one for the introduction of the remotely_inherited option defaulting to the current HEAD behavior, and one for the modification of the IMPORT FOREIGN SCHEMA, makes sense here. A backpatch of the first patch is a no-brainer, so as it gives a way for users to switch to the new behavior at will. I am however on edge regarding the wisdom of backpatching the second patch, which would force a new behavior of the postgres_fdw implementation for partitioned tables (based on my read of the test with "t4") and INHERIT ("t6", "t8") depending on the relkind or the property of the relation imported. I can't help but wonder why you don't take a different, slightly more conservative approach on HEAD and the stable branches with a new option that can be specified to the IMPORT FOREIGN SCHEMA query, to make the choice of setting remotely_inherited for a relation imported an opt-in or opt-out choice. I would not object with a switch of the default behavior across major versions, and perhaps my argument is not sound enough, but I've learnt my share when it comes to be careful with changes like the one you may introduce here across a minor release, particularly knowing that remotely_inherited *can* be set on an option basis when creating a table *or* when importing a schema. The designs we have for these queries allows this kind of flexibility. -- Michael --L5wmk/LsQK9LT5Sb Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmoo+DUACgkQnvQgOdby QH3a1A/+Ma5yN6fjfhhHmO1HW4mxd+3lc/+zW0HVmOiwdwywubXTPmjKPaeEHqJi hKTvzX17/o/cxsIACFWEyuxCrWwCKS3F8j3FfgQ4mnfOd20zjHfgeZxntJpBes5t VMzIzPqhZ6Ak+KyL8nqsRxseICo/jnGN2DzQLP+6DGkBINdk5OelW7wMbGOha3JF uOyDJfVYwG76QngzK0Qb7T3rY2B0TQwL9yGvYr5O+rsjtJFXB13CBijMD3a+3MO+ jRm5v39QXhibSJ2GnQyrUq0w2Spp273aL/u1+aAgkInj/Fm54F5LSjdRGwvDh1Li PU1Gt3EfCR7/E0wiumtNx3UNct3uFXD1sZrUBnZvqFT+AlvCiFyUd6F9q+dPca/+ LYSCK75kkRWNeMht2zD7jmANxXdGZ/OBftzdtmx9pEDZIvh09lQ3V9k5Ak5+OVuT XqV2Wok+kMzNMAzv2UtD0ed2liGOKtw33ESctwadBUko3FexfW4BfTl9MaRLcbME HdWjVYFEWRJilbmJKco9PbPdDM2Gmjaws0ra/cDGo2jfpPe+8tn4oNq+C/+aZzzy mubGQYoKPZIrkP/DiZ/UmtVdbgCQ4vmrr0Gic2gPvgcMuY3t4MDOpgGKY24+Y0Wt 4f6f8eCPV6oUFd/4K37buCyRQb4hb1gjN7weLcL2mlCq6Kh+7Uo= =Wqxd -----END PGP SIGNATURE----- --L5wmk/LsQK9LT5Sb--