BUG #14924: Subquery in VALUES inside recursive CTE

From: christianmduta(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Cc: christianmduta(at)gmail(dot)com
Subject: BUG #14924: Subquery in VALUES inside recursive CTE
Date: 2017-11-24 12:08:36
Message-ID: 20171124120836.1463.5310@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14924
Logged by: Christian Duta
Email address: christianmduta(at)gmail(dot)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Golub 2017-11-24 15:13:19 Re: Windows 10 Support Version
Previous Message jarda.urik 2017-11-24 10:24:16 BUG #14923: Java driver - PreparedStatement setNull in SELECT query