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 1oWJTn-0006Yb-M3 for pgsql-committers@arkaria.postgresql.org; Thu, 08 Sep 2022 15:30:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWJTl-0005Cb-L7 for pgsql-committers@arkaria.postgresql.org; Thu, 08 Sep 2022 15:30:09 +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 1oWJTl-0005CS-Dv for pgsql-committers@lists.postgresql.org; Thu, 08 Sep 2022 15:30:09 +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 1oWJTj-0005Wn-9x for pgsql-committers@lists.postgresql.org; Thu, 08 Sep 2022 15:30:09 +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 288FU4tM3976628; Thu, 8 Sep 2022 11:30:04 -0400 From: Tom Lane To: Robert Haas cc: Peter Eisentraut , Bruce Momjian , pgsql-committers Subject: Re: pgsql: doc: clarify recursion internal behavior In-reply-to: References: Comments: In-reply-to Robert Haas message dated "Thu, 08 Sep 2022 11:15:34 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3976626.1662651004.1@sss.pgh.pa.us> Date: Thu, 08 Sep 2022 11:30:04 -0400 Message-ID: <3976627.1662651004@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Thu, Sep 8, 2022 at 7:24 AM Peter Eisentraut > wrote: >> On 03.09.22 03:58, Bruce Momjian wrote: >>> + While RECURSIVE allows queries to be specified >>> + recursively, internally all queries are evaluated iteratively. >> Is that true? Surely there is some recursive behavior in the executor. > I haven't read the patch, but I think the claim shown here is correct. I'd be happier if it read "such queries" instead of "all queries". The latter is an extremely broad claim, and you have to ignore cases like recursive SQL functions in order to even argue it's true. regards, tom lane