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 1mRxgK-00021t-RW for pgsql-bugs@arkaria.postgresql.org; Sun, 19 Sep 2021 14:20:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mRxgH-0001ee-Rq for pgsql-bugs@arkaria.postgresql.org; Sun, 19 Sep 2021 14:20:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mRxgH-0001eW-Ko for pgsql-bugs@lists.postgresql.org; Sun, 19 Sep 2021 14:20:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mRxgE-0005Zn-Pa for pgsql-bugs@lists.postgresql.org; Sun, 19 Sep 2021 14:20:33 +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 18JEKQ0W1550448; Sun, 19 Sep 2021 10:20:26 -0400 From: Tom Lane To: Jaime Casanova cc: blo.talkto@gmail.com, pgsql-bugs@lists.postgresql.org, Peter Eisentraut Subject: Re: BUG #17061: Impossible to query the fields of the tuple created by SEARCH BREADTH FIRST BY .. SET .. In-reply-to: <20210918222017.GA12334@ahch-to> References: <17061-dd7f4825b7da3a9d@postgresql.org> <972632.1623941414@sss.pgh.pa.us> <20210918222017.GA12334@ahch-to> Comments: In-reply-to Jaime Casanova message dated "Sat, 18 Sep 2021 17:20:17 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1550446.1632061226.1@sss.pgh.pa.us> Date: Sun, 19 Sep 2021 10:20:26 -0400 Message-ID: <1550447.1632061226@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jaime Casanova writes: > Just to add fuel to the fire, I just noted that you cannot create a view > based on a recursive CTE using this syntax. > ... > ERROR: column "breadth" has pseudo-type record Yeah, I've run into that too. There's no time to reconsider the implementation for v14, but I'd sure like to see this revisited later. I'm kind of wondering if, instead of a single RECORD column, we could add each of the SEARCH columns and the depth column as a separate resjunk column. (However, I'm not sure how to extend that approach to the DEPTH FIRST case, which wants an array.) regards, tom lane