Skip to content

Commit 6f94280

Browse files
committed
Document PERFORM limitation when using WITH queries.
Backpatch to 9.0 and 9.1. Report from depstein@alliedtesting.com.
1 parent ae92eff commit 6f94280

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy