We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0a63f99 commit7ceb6fbCopy full SHA for 7ceb6fb
doc/src/sgml/plpgsql.sgml
@@ -305,10 +305,9 @@ $$ LANGUAGE plpgsql;
305
for transaction
306
control. <application>PL/pgSQL</application>'s <command>BEGIN</command>/<command>END</command>
307
are only for grouping; they do not start or end a transaction.
308
- Functions are always executed within a transaction
309
- established by an outer query — they cannot start or commit that
310
- transaction, since there would be no context for them to execute in.
311
- However, a block containing an <literal>EXCEPTION</literal> clause effectively
+ See <xref linkend="plpgsql-transactions"/> for information on managing
+ transactions in <application>PL/pgSQL</application>.
+ Also, a block containing an <literal>EXCEPTION</literal> clause effectively
312
forms a subtransaction that can be rolled back without affecting the
313
outer transaction. For more about that see <xref
314
linkend="plpgsql-error-trapping"/>.