diff options
| author | Bruce Momjian <bruce@momjian.us> | 2011-09-06 13:41:32 -0400 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2011-09-06 13:42:00 -0400 |
| commit | dcc728eef49bc0dbe2f88f9a56bda007afc9f46e (patch) | |
| tree | b6932139d6957974b805174059583bce4607051b | |
| parent | 01543329514475e2c42d52891ff4245bb9f5d83c (diff) | |
Document PERFORM limitation when using WITH queries.
Backpatch to 9.0 and 9.1.
Report from depstein@alliedtesting.com.
| -rw-r--r-- | doc/src/sgml/plpgsql.sgml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 82e7675c271..8049a6c03af 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -845,6 +845,9 @@ PERFORM <replaceable>query</replaceable>; result. Write the <replaceable>query</replaceable> the same way you would write an SQL <command>SELECT</> command, but replace the initial keyword <command>SELECT</> with <command>PERFORM</command>. + For <keyword>WITH</> queries, use <keyword>PERFORM</> and then + place the query in parentheses. (In this case, the query can only + return one row.) <application>PL/pgSQL</application> variables will be substituted into the query just as for commands that return no result, and the plan is cached in the same way. Also, the special variable |
