pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: tharakan@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16978: Nested CTEs give ERROR in v13
Date: Fri, 23 Apr 2021 10:08:06 -0400
Message-ID: <1313767.1619186886@sss.pgh.pa.us> (raw)
In-Reply-To: <16978-813ac0832f35db82@postgresql.org>
References: <16978-813ac0832f35db82@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> This narrowed down SQL (from what SQLSmith generated) seems to error out
> only with N levels of CTE nesting - no tables / views / 1-row output. 
> The SQL works fine with v12.4 but raises an ERROR in v13 which seems like a
> regression. Is this owing a recent change in v13 - that could affect this?

FWIW, I don't see any error from this, either in HEAD or the
back branches.

$ cat recursive.sql
WITH RECURSIVE w6(c6) AS
     (WITH w6(c6) AS
      (WITH w8(c8) AS
      (WITH w9(c9) AS
      (WITH w10(c10) AS
      (WITH w11(c11) AS
      (WITH w_err(c12) AS
   (SELECT 1)
    SELECT * FROM w_err)
    SELECT * FROM w11)
    SELECT * FROM w10)
    SELECT * FROM w9)
    SELECT * FROM w8)
     SELECT * FROM w6)
     SELECT * FROM w6;
$ psql -f recursive.sql
 c6 
----
  1
(1 row)

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <1313767.1619186886@sss.pgh.pa.us>
Permalink:  ../1313767.1619186886@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1313767.1619186886@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, tharakan@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16978: Nested CTEs give ERROR in v13
  In-Reply-To: <1313767.1619186886@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