From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas Seltenreich <seltenreich@gmx.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [sqlsmith] ERROR: plan should not reference subplan's variable
Date: Sat, 11 Aug 2018 15:15:25 -0400
Message-ID: <5475.1534014925@sss.pgh.pa.us> (raw)
In-Reply-To: <87va8g7vq0.fsf@ansel.ydns.eu>
References: <87va8g7vq0.fsf@ansel.ydns.eu>
Andreas Seltenreich <seltenreich@gmx.de> writes:
> sqlsmith caused another internal error while testing REL_11_STABLE at
> 1b9d1b08fe. The query below on the regression DB yields "plan should
> not reference subplan's variable" for me.
Thanks for the report. Seems to be wrong order of operations in
inheritance_planner: it shouldn't be appending extra SUBQUERY_RTE copies
to a subroot that it's going to use as a parent for later iterations.
That results in too many copies of the subqueries and screwed-up RTE
numbering in the children.
regards, tom lane
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, seltenreich@gmx.de
Subject: Re: [sqlsmith] ERROR: plan should not reference subplan's variable
In-Reply-To: <5475.1534014925@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