Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf115590

Browse files
committed
Doc: clarify use of RECURSIVE in WITH.
Apparently some people misinterpreted the syntax as being thatRECURSIVE is a prefix of individual WITH queries. It's a modifierfor the WITH clause as a whole, so state that more clearly.Discussion:https://postgr.es/m/ca53c6ce-a0c6-b14a-a8e3-162f0b2cc119@a-kretschmer.de
1 parentd30e0ed commitf115590

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎doc/src/sgml/ref/select.sgml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,14 @@ TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ]
281281
reads all or any of their output.
282282
</para>
283283

284+
<para>
285+
When there are multiple queries in the <literal>WITH</literal>
286+
clause, <literal>RECURSIVE</literal> should be written only once,
287+
immediately after <literal>WITH</literal>. It applies to all queries
288+
in the <literal>WITH</literal> clause, though it has no effect on
289+
queries that do not use recursion or forward references.
290+
</para>
291+
284292
<para>
285293
The primary query and the <literal>WITH</literal> queries are all
286294
(notionally) executed at the same time. This implies that the effects of

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp