pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John Naylor <john.naylor@enterprisedb.com>
Cc: cyg0810@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17097: FailedAssertion at initsplan.c
Date: Fri, 09 Jul 2021 13:39:58 -0400
Message-ID: <2257078.1625852398@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFBsxsGKi_+kRMLy5QZk=+D0FJW91tO_UsXkcDfzwoaGYq8XKA@mail.gmail.com>
References: <17097-3372ef9f798fc94f@postgresql.org>
	<CAFBsxsHW60-r=JdH4Mh-MtchSkZ38tYcRnivutOhnXH0b1MdCQ@mail.gmail.com>
	<CAFBsxsGHwHMDuCDZj+ZDA6+Bzs02cdGPFSif7Mh-KH18wOT9LQ@mail.gmail.com>
	<2230092.1625848961@sss.pgh.pa.us>
	<CAFBsxsGKi_+kRMLy5QZk=+D0FJW91tO_UsXkcDfzwoaGYq8XKA@mail.gmail.com>

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





view thread (6+ messages)

Message-ID: <2257078.1625852398@sss.pgh.pa.us>
Permalink:  ../2257078.1625852398@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2257078.1625852398@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, john.naylor@enterprisedb.com, cyg0810@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17097: FailedAssertion at initsplan.c
  In-Reply-To: <2257078.1625852398@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox