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 1wXH1D-003AMo-3B for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2026 11:22:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wXH1C-00Ay9n-2q for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2026 11:22:46 +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 1wXH1C-00Ay9f-1s for pgsql-hackers@lists.postgresql.org; Wed, 10 Jun 2026 11:22:46 +0000 Received: from mail-dy1-x1336.google.com ([2607:f8b0:4864:20::1336]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wXH1A-0000000200l-2VOe for pgsql-hackers@lists.postgresql.org; Wed, 10 Jun 2026 11:22:45 +0000 Received: by mail-dy1-x1336.google.com with SMTP id 5a478bee46e88-306f36df4feso4440710eec.0 for ; Wed, 10 Jun 2026 04:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781090563; cv=none; d=google.com; s=arc-20240605; b=imHDYEleDB1afZ34ILW+KJuDcQA9jsHQ9P0Zcno7yR2eEOra2tB8fDZ+mHfVHJNQuE JWUyNwy4uNx/UtdlTEB5G5f70sssQpzrVLeIfCkjjXPbGFxoOZFA/LuH0kyftszVpbnM /hnavWpRtd2az0dH8FpdUJjk5rh55wrlfhJm4ADr86IJQrURYneUwoA29dvMyM/PXLal 1QW3bfTklHXMwF+InQmg5KD9qTo7PJguYr8Y9yTvGBihX5gGw5c0ADZ78vCDYiHa4FbH v+Rqtobc7ZuBsZK4fdNdSVYxMGjUUuIxKGVFZxgPeAbjFViFd47WUbBN0Fyq0ovFovbh 652w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=1sFt7uLc782cyilK2zHUjamnMEcrwMLBF8QVnd9NRwc=; fh=K1KEIfSimYE0NcNNunV9QEp4ngSB/9zL9UNYYLCSYMQ=; b=hcd8u/fvOFrg3BzLb23oWCyIIfJXJ4ZJ2qCoCvyGSQJ0DTMlLyGhW9aSIiR+E7CDmX OHSid0s/OjM0f8KNSShon65CCj2zmznTGPRPVhgnf61KXpT8n6daJ+oEwrKLdaiC3Kki MsMDUEBV0xFB/Y7Q5/80LZHVr4ahfQUxTRqzAuYJNwP4r+/pYL6cG45jP8loGBIa9GaL VxNOPqWCg4es69CvS4fBJq5uC+jh5H+z4MhA3kFnOmCLLCfZmXhLO3XKd7TZ9q4EOVy4 ZotMRt3RiEXi9usgsG9vz6QFNv+uhTX+WbKqr3f8vg+mlzfKmPesFyD0iyEy9+9HuboK dLHw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781090563; x=1781695363; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1sFt7uLc782cyilK2zHUjamnMEcrwMLBF8QVnd9NRwc=; b=MAJS4/1hsJ4tZ+dIqKvRSolTPnVWnoeo84Mkq9lSS6tX54pXtV8BK04t/hViGQhDL7 S1pour6hWYYn0HxH/33Q1aLIB1Z9/LVz72yFqFtTwIqhGMkWrG2U6VkXl/SkmHIMDVYI FSrNuyE6k0lOkLlG012SMcMy66qtNfBIPckLGOz6zfV386AUm1Xco7rykUvXgCcO1oxK kqTe+I2aRFmjH/+GnHfx1edPgunCEW1VckFIvEL36ha+M8gU8LxmSiw9dm2+7H0XZkfy k9f2WNymhc3nn4hB/62N54Ulb2YT9PZjsastrNNO2FxENGd6Qn9vY9gwaLFfFU9gkb3+ v1ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781090563; x=1781695363; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=1sFt7uLc782cyilK2zHUjamnMEcrwMLBF8QVnd9NRwc=; b=kAZDmsDCF5hyiScDrOyY98Ea8WCdl17znPtOXFsnY9E+RGHQovH6B1pjl4Quk7C2i/ vRPIsAyk/0ObZ70Y3nFta7olXe4iStUvresWA84rctOat4kXXcDni0rvql0rK6CncKmI EHKlMvcQRmGUwPvv9MXv5EKjJczULLUSPkZ+/zSUMJP9TddKSQ0ezGhsoW0jfjEtS6Hz uMx2oxaeZcrVwRUrwOZxm11GAqqd/C5beoScJC3lMAqsaURFBrUw5dQ+2906xfgvWIH5 ojv9B8VkhvsNnQBqDACmLjkU+XCriiztQy7S8AMbT9u4suxn7BUCh5NECX2Lx0dQdlR/ a64Q== X-Forwarded-Encrypted: i=1; AFNElJ8CS9zT3svpkpcy2PNFTSPSsEbvV8hHuMycfkSuvORnh9pM0xEXfFWwGfWLn2ByXRInw7ErRTL2V6tap75c@lists.postgresql.org X-Gm-Message-State: AOJu0YwGcS25Wz7DfDX/W0Thnyj/LXKe+qpKZmp1LH7oU9R7W5msx+gJ YfykaG5RKzZGlaQdVitD/omjqupWl2aCqK6JhtQeL50UnmldnWiEw97XdOZqdGm/De0ej+ogFnr O5PqKSgvFgLRekjVNn/vjPIJipfF+0hU= X-Gm-Gg: Acq92OErZa/FXvPdJIdkUiA0dQ2IhWKI3f2D8D0zUgYgfuuvftl/RepHvdw5gAp44aL 2mqB89krDeH324bNlcveNeHMPsSWF7t9rNPcat+ZS5Kgte7xBmzZ29nZW20uiaNc3a2G1Ty4Niu Ofs0VU8PqUAhN4MWVciAvR6Vkj10cbw8yTdLaQYC66e+cL4mKAldwki4AACQxrJI5sR2W6sluFK 9Xt4fyYriPTmEiS/3vVKYIVlR/cSXLFoyedt9KnHoUr7n4G2beUYO98blAs5imwIN4iNjzTBI+A VQoWOQqfcJDatEk3ZBtsyJjZjt3vUDnlVox1Tsjw2E6+9viWn7obXgjhiFjIGFhwJPsWCT6VMro M9gTjCWCaTa74lwDL7I9qe6HRq1oxuIhA0ExZXijGIAu+mDzW6ug= X-Received: by 2002:a05:7300:fe04:b0:304:70d0:4f03 with SMTP id 5a478bee46e88-3077fe1125emr12804501eec.6.1781090563434; Wed, 10 Jun 2026 04:22:43 -0700 (PDT) MIME-Version: 1.0 References: <20250718175314.4513c00a@karst> <20250729174852.14f23557@karst> In-Reply-To: From: Etsuro Fujita Date: Wed, 10 Jun 2026 20:22:31 +0900 X-Gm-Features: AVVi8CdVW9LC80eyCYgAPk0NmpwFrgsaicY9GreHmETT9aRQPgNbGZl5y5sO9p8 Message-ID: Subject: Re: [(known) BUG] DELETE/UPDATE more than one row in partitioned foreign table To: Michael Paquier Cc: Nikita Malakhov , Jehan-Guillaume de Rorthais , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jun 10, 2026 at 2:38=E2=80=AFPM Michael Paquier wrote: > 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. I agree that we should take a more conservative approach especially on the stable branches, and I think it's a good idea to add the option to IMPORT FOREIGN SCHEMA for that, so I will update the patch as such in the next version. Thanks for the comments! Best regards, Etsuro Fujita