pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: nodepill@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17708: 12.4
Date: Fri, 09 Dec 2022 09:34:01 -0500
Message-ID: <704944.1670596441@sss.pgh.pa.us> (raw)
In-Reply-To: <17708-1d976d155a1b2b41@postgresql.org>
References: <17708-1d976d155a1b2b41@postgresql.org>

PG Bug reporting form <noreply@postgresql.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





view thread (2+ messages)

Message-ID: <704944.1670596441@sss.pgh.pa.us>
Permalink:  ../704944.1670596441@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/704944.1670596441@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, nodepill@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17708: 12.4
  In-Reply-To: <704944.1670596441@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