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 1waAR2-001ZsT-2n for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jun 2026 10:57:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1waAR1-00AuPF-2h for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jun 2026 10:57:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1waAR1-00AuP7-1l for pgsql-bugs@lists.postgresql.org; Thu, 18 Jun 2026 10:57:23 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1waAQz-000000014x1-0szM for pgsql-bugs@lists.postgresql.org; Thu, 18 Jun 2026 10:57:22 +0000 Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-36b9ec98144so551789a91.1 for ; Thu, 18 Jun 2026 03:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781780239; cv=none; d=google.com; s=arc-20240605; b=YMtQ7b9NpGdRfOfI/fkhVfGzOHZ+rLb/APENHLPBy3zCUDEWjgNw1jUxKMzBK0HJh6 nvALGYKvtjNPYclPM8FJCeH1z8K4e2ml3wsM/nsJrDcYEcVtI9JBq3tT3s9eNSs6Wdyr XN1SLknQnlqBz2c29n/351ZFD48h9qb23TUASzXmxUbEFNp/I+YcFDvLtCAu6w5L+IC4 7/WEEZee+476B2r7OdL12xFGhGzbYR68P5gtlpJsXMw9+bVrBJyWw0QMf8fE+Ixd2zrp OMfSsTWCLFn+fqxoOTx38NzfSWE7yjv6NWl9F+7JXvHiL34+QcsuSk6sfR711bUMSmkd YCeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=Xq7N3zmHB65MVarkkPh6vrJ6nGr9Kgu533ofKVrzxSk=; fh=TYVf3myyV76G/4+4m8XINxiw1243rXY4jip/bW5j6Hc=; b=PsiL+8CSja5WnlSzBFr/4Ay9B/rEQTQhXjo33vjmrCFB3uugIhcE8Ew8UZu0AfH5au Otgj8gW6SWtl/8YSr0nHY0dJk2BkE+E/GZWEtjkTigWN54QXaopZagckmtBZrRiM17Ry TlL0NHOBrUlHHCJMOhMTlU83y0twvp5q1ZwPDE9FwcD9kYjV1sg5vHONXhsmw2XaSKrW sTyDXGbjDe2qB7PgmuQ9TOWF6XvtSlE5d4A8FGDv79sdG07ihIBxoFr43sAwec0/hGG8 8PET+OFOfivAji2MltQJQ4tbfdVbCdt2OShmB1XcSCURIRBQAW31ijiVmmTSXpydKm2E jEEg==; 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=1781780239; x=1782385039; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Xq7N3zmHB65MVarkkPh6vrJ6nGr9Kgu533ofKVrzxSk=; b=F7ucBurTdLwTpFndkcy8Z8ThuyQsChPQg+hBXJ0ii1m76X+mdVMu9U/lYdQ2wL1gkJ kE627hU0NOKJfHTmDrySSNKxVzd4WbLZ6ONFCt2fwSp3kjlpw1MARKSf4HfCrk/cSDu4 PNBM0nBplBgLB5WOPEtdMNw5rVqK8HnAwJTpBCs758igVxil8T9BpL/3F0aPpGPdoD2j uhnrDFyf7kQt9CmpfgtivGIVnQ9NYMGNCwjiMoX7VOErNEMQcCNbA4ZbahHyJ0gjJvx5 I3q+lJDseJcc0oAH13HDxwmfLkrubwOFooZT3fMUGeP+dxf4HDBaP+ue8RD93JiBi+fc 9pVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781780239; x=1782385039; h=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=Xq7N3zmHB65MVarkkPh6vrJ6nGr9Kgu533ofKVrzxSk=; b=p/OmLCCeqiMwxpdbRE0WeHn2i+WIciPf8WHVr9vFKxsoOLAPX8tOYvw6YY89TNLq51 5A6lg08aOQEbuzwWvSzoQNjGY4He+m2dWSG2EU2tGhYQ9ODwQCRCy7ATNgUZCLeSJHVc jlqc+PrbeUC07Oqld58viRkHBgdfSI8SiYKN1oN0kI4uH4+yVROm41ws7aC/ZL2vNDbO a509oF7EZQ894UBHNidV9aenCFDSBnC+wZbdcjD+6OCEuQa/VyTHMw+bsF2x44p14JTG IUrdIxPZ5XxY4FpCs7D8ic93wUdeEyLhgVk2RDhvf1DP60E+6ybd73iYziKP26veGV43 XZ8A== X-Forwarded-Encrypted: i=1; AFNElJ8eTXbvu+intdCZ815ZfbSvwb/wEd8PXTBKW1lSKd1M/C2kYAgOQwhJC7q7kPTYSHznMpxNnIe2XuST@lists.postgresql.org X-Gm-Message-State: AOJu0Yyb2IrB65bWJDHbGOSWKpRCg/nsXoV9ifPa8k/D0mmBS7octFii ei2fXB4eIIbWXDoBIG3BInM/rydAMxdG5dgjvN9IUBuB2MOFHENQIlBqriJsxMn3pYW5YMFpNzL 9bd7Ozt6qKqBTOdAVm0EhcedHRkt492A= X-Gm-Gg: AfdE7clbpduagaZdyLI3X9dGlsQmoqa5/fAfM4bJhxUbfULgNKra4Ru5XXhrtOvH76u co0edw15FIgasdivNSX2Phxe1VoVRpEnPjf/y77Sw9+iHNOoW/AHsNFePpc92aVCAd+uW+80R78 Q7PDqiZXRpvQgnMOm6bRa43FV6VBuLIBvP5dST5QmAkGYe5yVx7UZiJXSOjZCexdWgRK0yWNslb XuE4GwltDPbJG0BRY47f0an36u3dJk77ZdSbEbzjC84vbPjgTCUgEiTRWQL/3Ili6mBXlEAoUjf Gqmjiid6Uk8tqhtaHn2x740skuBId+jHzoTQwS/krkPmhGqa7763nA== X-Received: by 2002:a17:90a:c10f:b0:368:b01c:85a0 with SMTP id 98e67ed59e1d1-37ce869e1a3mr2355201a91.14.1781780239279; Thu, 18 Jun 2026 03:57:19 -0700 (PDT) MIME-Version: 1.0 References: <19484-a3cb82c8cde3c8fa@postgresql.org> In-Reply-To: From: Amit Langote Date: Thu, 18 Jun 2026 19:57:07 +0900 X-Gm-Features: AVVi8CfWhapZTP-GiDSMSG_aA0gAz7MNLvkHt3AZlfd3OLKjdPh21zZX1eaHZG0 Message-ID: Subject: Re: BUG #19484: Segmentation fault triggered by FDW To: Etsuro Fujita Cc: Matheus Alcantara , Ayush Tiwari , Rafia Sabih , 798604270@qq.com, pgsql-bugs@lists.postgresql.org, Amit Langote Content-Type: multipart/alternative; boundary="0000000000003ae9150654850a11" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003ae9150654850a11 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 18, 2026 at 19:55 Etsuro Fujita wrote= : > Sorry, I accidentally sent this before I finished writing. > > On Thu, Jun 18, 2026 at 7:50=E2=80=AFPM Etsuro Fujita > wrote: > > > > Amit-san, > > > > On Thu, Jun 18, 2026 at 6:16=E2=80=AFPM Amit Langote > wrote: > > > A small clarification on this one: the patch makes no changes to > > > postgres_fdw code, only adds a regression test. The bug, which I > > > introduced, is in how nodeModifyTable.c supplies fdw_private from the > > > pruned/validated fdwPrivLists in ModifyTableState rather than the > > > original list in ModifyTable, so the postgres_fdw side itself is > > > unchanged. The substantive change is the executor re-indexing. > > > > Thanks for the clarification! > > > > > Still holding off on committing per our exchange, but no rush given > > > you may want to prioritize the v19 open items. Happy to go ahead > > > whenever, or wait for your comments. > > Actually, I've just started reviewing the patch. I'll let you know > the results (if any) by tomorrow. Thanks for the consideration as > well. Ah, thanks for the heads up. - Amit > --0000000000003ae9150654850a11 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Jun 18, 2026 at 19:55 Etsuro Fujita <etsuro.fujita@gmail.com> wrote:<= br>
Sorry, I accidentally sent this before I fin= ished writing.

On Thu, Jun 18, 2026 at 7:50=E2=80=AFPM Etsuro Fujita <etsuro.fujita@gmail.com>= wrote:
>
> Amit-san,
>
> On Thu, Jun 18, 2026 at 6:16=E2=80=AFPM Amit Langote <amitlangote09@gmail.com= > wrote:
> > A small clarification on this one: the patch makes no changes to<= br> > > postgres_fdw code, only adds a regression test. The bug, which I<= br> > > introduced, is in how nodeModifyTable.c supplies fdw_private from= the
> > pruned/validated fdwPrivLists in ModifyTableState rather than the=
> > original list in ModifyTable, so the postgres_fdw side itself is<= br> > > unchanged. The substantive change is the executor re-indexing. >
> Thanks for the clarification!
>
> > Still holding off on committing per our exchange, but no rush giv= en
> > you may want to prioritize the v19 open items. Happy to go ahead<= br> > > whenever, or wait for your comments.

Actually, I've just started reviewing the patch.=C2=A0 I'll let you= know
the results (if any) by tomorrow.=C2=A0 Thanks for the consideration as
well.

Ah, thanks = for the heads up.

- Amit=
--0000000000003ae9150654850a11--