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