Re: TRAP: failed Assert("outerPlan != NULL") in postgres_fdw.c

Etsuro Fujita <etsuro.fujita@gmail.com>

From: Etsuro Fujita <etsuro.fujita@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>, kristianlejao@gmail.com
Date: 2025-10-07T10:59:14Z
Lists: pgsql-bugs
On Mon, Oct 6, 2025 at 12:37 PM Michael Paquier <michael@paquier.xyz> wrote:
> On Mon, Oct 06, 2025 at 02:15:25AM +0900, Etsuro Fujita wrote:
> > The isolation test fails.  I think you failed to update the expected
> > file.  Also, you left the useless alias for table a alone...
>
> Yep, the EXPLAIN plan was missing.  Another thing that you have missed
> is to update postgres_fdw's .gitignore so as it discards /output_iso/.
>
> The updated patch attached, labelled v6, addresses all that.

LGTM.  Thanks for updating the patch including the .gitignore file!

Sawada-san, the patch uses the fix for ExecScanFetch that I proposed,
so if you wouldn't mind, I'd like to take care of this.

Best regards,
Etsuro Fujita