Re: documentation for WITH RECURSIVE
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas Kretschmer <andreas@a-kretschmer.de>
Cc: pgsql-docs@lists.postgresql.org
Date: 2019-11-18T17:32:08Z
Lists: pgsql-docs
Andreas Kretschmer <andreas@a-kretschmer.de> writes: > One of our customers had problems with the syntax of WITH RECURSIVE. He > suggested that the documentation should be improved, maybe with this > sentence: > "If any of the CTEs is recursive, the recursive keywork must be present > after with", so to make sure that it does not refer to just one of the > named subqueries. Hm, was this intended for the SELECT man page (presumably in the "WITH Clause" section), or for section 7.8? In the SELECT page, I'd be inclined to put it after the para about "queries need not be ordered" and phrase it more like If there are multiple queries in the WITH clause, RECURSIVE can be written only once, immediately after WITH. It applies to all queries in the WITH clause (but has no effect on queries that do not use either of these features). regards, tom lane
Commits
-
Doc: clarify use of RECURSIVE in WITH.
- f1155901fa59 10.12 landed
- e0457665ccf8 11.7 landed
- 823a551fe0c6 12.2 landed
- 6e8516ef6c60 9.4.26 landed
- 5bb9954c1cda 9.6.17 landed
- 5b805886ca11 13.0 landed
- 4871270e38e5 9.5.21 landed