Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p3eRz-0007OO-Np for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Dec 2022 14:34:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p3eRy-0003ed-Ab for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Dec 2022 14:34:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p3eRy-0003d6-2u for pgsql-bugs@lists.postgresql.org; Fri, 09 Dec 2022 14:34:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p3eRw-0002wI-0v for pgsql-bugs@lists.postgresql.org; Fri, 09 Dec 2022 14:34:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2B9EY1ek704945; Fri, 9 Dec 2022 09:34:01 -0500 From: Tom Lane To: nodepill@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17708: 12.4 In-reply-to: <17708-1d976d155a1b2b41@postgresql.org> References: <17708-1d976d155a1b2b41@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 09 Dec 2022 05:33:32 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <704943.1670596441.1@sss.pgh.pa.us> Date: Fri, 09 Dec 2022 09:34:01 -0500 Message-ID: <704944.1670596441@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form 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