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

Commitdcc728e

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

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
@@ -845,6 +845,9 @@ PERFORM <replaceable>query</replaceable>;
845845
result. Write the <replaceable>query</replaceable> the same
846846
way you would write an SQL <command>SELECT</> command, but replace the
847847
initial keyword <command>SELECT</> with <command>PERFORM</command>.
848+
For <keyword>WITH</> queries, use <keyword>PERFORM</> and then
849+
place the query in parentheses. (In this case, the query can only
850+
return one row.)
848851
<application>PL/pgSQL</application> variables will be
849852
substituted into the query just as for commands that return no result,
850853
and the plan is cached in the same way. Also, the special variable

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp