From 0f590f0064b3a6f1a7492dcc2370819cda0a12c9 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 2 Sep 2022 21:57:41 -0400 Subject: [PATCH] doc: clarify recursion internal behavior Reported-by: Drew DeVault Discussion: https://postgr.es/m/20211018091720.31299-1-sir@cmpwn.com Backpatch-through: 10 --- doc/src/sgml/queries.sgml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/queries.sgml b/doc/src/sgml/queries.sgml index 18a9e79259..5366f1f7e6 100644 --- a/doc/src/sgml/queries.sgml +++ b/doc/src/sgml/queries.sgml @@ -2110,9 +2110,8 @@ SELECT sum(n) FROM t; - Strictly speaking, this process is iteration not recursion, but - RECURSIVE is the terminology chosen by the SQL standards - committee. + While RECURSIVE allows queries to be specified + recursively, internally all queries are evaluated iteratively.