From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: doc: clarify recursion internal behavior
Date: Wed, 28 Sep 2022 13:14:56 -0400
Message-ID: <YzSBECSTUbuXL/Jt@momjian.us> (raw)
In-Reply-To: <3976627.1662651004@sss.pgh.pa.us>
References: <E1oUIQF-001AWC-Dh@gemulon.postgresql.org>
<f88a4e74-8cb2-0f0f-622f-6bcff0c17ec4@enterprisedb.com>
<CA+TgmoYHkORN2LtHUW3Sp3=aGYiJE3m8ExSL_FOU3LUHb9BjRQ@mail.gmail.com>
<3976627.1662651004@sss.pgh.pa.us>
On Thu, Sep 8, 2022 at 11:30:04AM -0400, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
> > On Thu, Sep 8, 2022 at 7:24 AM Peter Eisentraut
> > <peter.eisentraut@enterprisedb.com> wrote:
> >> On 03.09.22 03:58, Bruce Momjian wrote:
> >>> + While <literal>RECURSIVE</literal> 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.
Done in the attached applied patch.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
Indecision is a decision. Inaction is an action. Mark Batterson
Attachments:master.diff (text/x-diff, 464B) downloaddiff --git a/doc/src/sgml/queries.sgml b/doc/src/sgml/queries.sgmlindex 4c5a83c9cb..95559ef1ac 100644--- a/doc/src/sgml/queries.sgml+++ b/doc/src/sgml/queries.sgml@@ -2173,7 +2173,7 @@ SELECT sum(n) FROM t;
<note>
<para>
While <literal>RECURSIVE</literal> allows queries to be specified
- recursively, internally all queries are evaluated iteratively.+ recursively, internally such queries are evaluated iteratively.
</para>
</note>
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-committers@postgresql.org
Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, peter.eisentraut@enterprisedb.com, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: doc: clarify recursion internal behavior
In-Reply-To: <YzSBECSTUbuXL/Jt@momjian.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