Re: BUG #17097: FailedAssertion at initsplan.c - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17097: FailedAssertion at initsplan.c
Date
Msg-id 2257078.1625852398@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #17097: FailedAssertion at initsplan.c  (John Naylor <john.naylor@enterprisedb.com>)
List pgsql-bugs
John Naylor <john.naylor@enterprisedb.com> writes:
> If it saves you some time, the assert happens here in
> replace_vars_in_jointree():

> case RTE_JOIN:
> case RTE_CTE:
> case RTE_NAMEDTUPLESTORE:
> case RTE_RESULT:
> /* these shouldn't be marked LATERAL */
> Assert(false);
> break;

> where the plan has RTE_RESULT

Ah.  When converting the FUNCTION RTE to a dummy RESULT,
we must clear its lateral flag to avoid making this
logic unhappy.  Fixed.

            regards, tom lane



pgsql-bugs by date:

Previous
From: John Naylor
Date:
Subject: Re: BUG #17097: FailedAssertion at initsplan.c
Next
From: PG Bug reporting form
Date:
Subject: BUG #17098: Assert failed on composing an error message when adding a type to an extension being dropped