From: Bruce Momjian Date: Thu, 10 Mar 2011 23:46:21 +0000 (-0500) Subject: Clarify what commands are not allowed in SQL functions. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=678a0d286c2928aa85bcf25e5c3c633e88e44999;p=pg-rex%2Fsyncrep.git Clarify what commands are not allowed in SQL functions. --- diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml index c65f8522b3..70dfe38019 100644 --- a/doc/src/sgml/xfunc.sgml +++ b/doc/src/sgml/xfunc.sgml @@ -116,9 +116,9 @@ Besides SELECT queries, the commands can include data modification queries (INSERT, UPDATE, and DELETE), as well as - other SQL commands. (The only exception is that you cannot put - BEGIN, COMMIT, ROLLBACK, or - SAVEPOINT commands into a SQL function.) + other SQL commands. (You cannot put transaction commands, e.g. + COMMIT, SAVEPOINT, and some utility + commands, e.g. VACUUM, into an SQL function.) However, the final command must be a SELECT or have a RETURNING clause that returns whatever is