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

Commit6f94280

Browse files
committed
Document PERFORM limitation when using WITH queries.
Backpatch to 9.0 and 9.1.Report from depstein@alliedtesting.com.
1 parentae92eff commit6f94280

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎doc/src/sgml/plpgsql.sgml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,9 @@ PERFORM <replaceable>query</replaceable>;
940940
result. Write the <replaceable>query</replaceable> the same
941941
way you would write an SQL <command>SELECT</> command, but replace the
942942
initial keyword <command>SELECT</> with <command>PERFORM</command>.
943+
For <keyword>WITH</> queries, use <keyword>PERFORM</> and then
944+
place the query in parentheses. (In this case, the query can only
945+
return one row.)
943946
<application>PL/pgSQL</application> variables will be
944947
substituted into the query just as for commands that return no result,
945948
and the plan is cached in the same way. Also, the special variable

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp