Document PERFORM limitation when using WITH queries.
authorBruce Momjian
Tue, 6 Sep 2011 17:41:28 +0000 (13:41 -0400)
committerBruce Momjian
Tue, 6 Sep 2011 17:42:08 +0000 (13:42 -0400)
Backpatch to 9.0 and 9.1.

Report from [email protected].

doc/src/sgml/plpgsql.sgml

index 08c3658d5e37171f779e772089b448a76fbec923..a2482de2b95b63653be507219c895d29e62d45d3 100644 (file)
@@ -940,6 +940,9 @@ PERFORM query;
      result.  Write the query the same
      way you would write an SQL SELECT command, but replace the
      initial keyword SELECT with PERFORM.
+     For WITH queries, use PERFORM and then
+     place the query in parentheses.  (In this case, the query can only
+     return one row.)
      PL/pgSQL 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