From: christianmduta@gmail.com
To: pgsql-bugs@postgresql.org
Cc: christianmduta@gmail.com
Subject: BUG #14924: Subquery in VALUES inside recursive CTE
Date: Fri, 24 Nov 2017 12:08:36 +0000
Message-ID: <20171124120836.1463.5310@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 14924
Logged by: Christian Duta
Email address: christianmduta@gmail.com
PostgreSQL version: 10.1
Operating system: macOS High Sierra 10.13.1
Description:
When working with recursive CTEs, I had the following happen:
Evaluating the following
-- List numbers from 1 to 10.
WITH RECURSIVE
steps(i) AS (
SELECT 1
UNION
SELECT val.x
FROM steps AS s,
LATERAL (
VALUES
((SELECT s.i + 1)),
(s.i + 1)
) AS val(x)
WHERE s.i < 10
)
SELECT *
FROM steps;
results in
ERROR: XX000: SubPlan found with no parent plan
LOCATION: ExecInitExprRec, execExpr.c:1013
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: christianmduta@gmail.com
Subject: Re: BUG #14924: Subquery in VALUES inside recursive CTE
In-Reply-To: <20171124120836.1463.5310@wrigleys.postgresql.org>
* 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