Re: BUG #17708: 12.4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: nodepill(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17708: 12.4
Date: 2022-12-09 14:34:01
Message-ID: 704944.1670596441@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> WITH RECURSIVE search_tree(id, link, data) AS (
> SELECT t.id, t.link, t.data
> FROM tree t
> UNION ALL
> SELECT t.id, t.link, t.data
> FROM tree t join search_tree st on t.id = st.link
> WHERE t.id < 2
> ) SEARCH DEPTH FIRST BY id SET ordercol

> [42601] ERROR: syntax error at end of input

Yeah ... you wrote a WITH clause, but where's the main SELECT?

> But run ok in PostgreSQL 15.1

I *seriously* doubt that.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2022-12-09 15:46:04 BUG #17710: Slow queries (100% CPU) after auto-vacuum
Previous Message Richard Guo 2022-12-09 14:01:21 Re: BUG #17709: Regression in PG15 with window functions - "WindowFunc not found in subplan target lists"