Pg18 Recursive Crash - Mailing list pgsql-hackers

From Paul Ramsey
Subject Pg18 Recursive Crash
Date
Msg-id 99F064C1-B3EB-4BE7-97D2-D2A0AA487A71@cleverelephant.ca
Whole thread Raw
Responses Re: Pg18 Recursive Crash
List pgsql-hackers
Apologies if this is already reported, but there’s a crasher in recursive queries at the head of the current
developmentthat happened to be exercised by our regression suite. Here is a core-only reproduction. 

CREATE TABLE foo (id integer, x integer, y integer);
INSERT INTO foo VALUES (1, 0, 1);
INSERT INTO foo VALUES (2, 1, 2);
INSERT INTO foo VALUES (3, 2, 3);

WITH RECURSIVE path (id, x, y) AS (
    SELECT id, x, y FROM foo WHERE id = 1
    UNION
    SELECT foo.id, foo.x, foo.y
    FROM path, foo
    WHERE path.y = foo.x
)
SELECT 'crash', id, x, y FROM path;


Thanks!
ATB,
P


pgsql-hackers by date:

Previous
From: Jelte Fennema-Nio
Date:
Subject: Re: Improving default column names/aliases of subscript text expressions
Next
From: Tomas Vondra
Date:
Subject: Re: Improved psql tab completion for joins