From: | Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com> |
---|---|
To: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>, kristianlejao(at)gmail(dot)com |
Subject: | Re: TRAP: failed Assert("outerPlan != NULL") in postgres_fdw.c |
Date: | 2025-10-05 17:15:25 |
Message-ID: | CAPmGK17eOxqzi8YQDh-q2myyS_zvd602iBEV_fV=byzskYZygg@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Sat, Oct 4, 2025 at 6:21 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
> On Fri, Oct 3, 2025 at 4:00 AM Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com> wrote:
> > On Fri, Oct 3, 2025 at 7:21 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
> > > I've updated the patch based on your comments. Please find the attached patch.
> >
> > Thanks for updating the patch!
> >
> > +step "s1_tuplock" {
> > + EXPLAIN (COSTS OFF, ANALYZE ON, TIMING OFF, SUMMARY OFF, BUFFERS OFF)
> > + SELECT a.i,
> > + (SELECT 1 FROM fb, fc WHERE a.i = fb.i AND fb.i = fc.i)
> > + FROM a as a
> > + FOR UPDATE;
> > +}
> >
> > Maybe my comment about this step was not enough, but I'm wondering we
> > should run EXPLAIN and then SELECT here like below, rather than
> > running EXPLAIN ANALYZE, as that seems more usual to me:
> >
> > step "s1_tuplock" {
> > EXPLAIN (VERBOSE, COSTS OFF)
> > SELECT a.i,
> > (SELECT 1 FROM fb, fc WHERE a.i = fb.i AND fb.i = fc.i)
> > FROM a
> > FOR UPDATE;
> > SELECT a.i,
> > (SELECT 1 FROM fb, fc WHERE a.i = fb.i AND fb.i = fc.i)
> > FROM a
> > FOR UPDATE;
> > }
> >
> > I added the VERBOSE option to show the remote query, and removed the
> > alias for a.
>
> Done.
>
> > BTW: you added quotation marks around a name for each session or step
> > like "s1_tuplock". Do we really need them? This is nitpicking,
> > though.
>
> No, I brought a convention from other spec files. I've unquoted all
> sessions and steps.
>
> I've attached the updated patch that dealt with all comments including
> ones Michael-san made[1].
Thanks for updating the patch!
The isolation test fails. I think you failed to update the expected
file. Also, you left the useless alias for table a alone...
Best regards,
Etsuro Fujita
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2025-10-05 18:09:19 | Re: [BUGS] BUG #11500: PRIMARY KEY index not being used |
Previous Message | Tom Lane | 2025-10-05 15:48:33 | Re: BUG #19073: there are meaningless code in _SPI_execute_plan() when canSetTag is true |