mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-24 00:47:19 +02:00
doc: Clarify some wording in PL/pgSQL about transactions
Some text was still claiming that committing transactions was not possible in PL/pgSQL.
This commit is contained in:
parent
e0dc839e72
commit
17df2a8b39
@ -305,10 +305,9 @@ $$ LANGUAGE plpgsql;
|
|||||||
for transaction
|
for transaction
|
||||||
control. <application>PL/pgSQL</application>'s <command>BEGIN</command>/<command>END</command>
|
control. <application>PL/pgSQL</application>'s <command>BEGIN</command>/<command>END</command>
|
||||||
are only for grouping; they do not start or end a transaction.
|
are only for grouping; they do not start or end a transaction.
|
||||||
Functions are always executed within a transaction
|
See <xref linkend="plpgsql-transactions"/> for information on managing
|
||||||
established by an outer query — they cannot start or commit that
|
transactions in <application>PL/pgSQL</application>.
|
||||||
transaction, since there would be no context for them to execute in.
|
Also, a block containing an <literal>EXCEPTION</literal> clause effectively
|
||||||
However, a block containing an <literal>EXCEPTION</literal> clause effectively
|
|
||||||
forms a subtransaction that can be rolled back without affecting the
|
forms a subtransaction that can be rolled back without affecting the
|
||||||
outer transaction. For more about that see <xref
|
outer transaction. For more about that see <xref
|
||||||
linkend="plpgsql-error-trapping"/>.
|
linkend="plpgsql-error-trapping"/>.
|
||||||
|
Loading…
Reference in New Issue
Block a user